gianfriaur/package-loader is a Laravel package for laravel package management.
It currently has 0 GitHub stars and 27 downloads on Packagist (latest version v1.1.2).
Install it with composer require gianfriaur/package-loader.
Discover more Laravel packages by gianfriaur
or browse all Laravel packages to compare alternatives.
Last updated
just another package manager for laravel nothing more and nothing less
but if you want to use it you are welcome
In an ideal world we will all be the standard,
But it's also true that if there were a standard, our project wouldn't be the only one, wouldn't it?
Starting from this we can say that it is not always possible to make things according to the existing standard, or simply for the 'company' logic this is not possible
The purpose of this library is to provide a tool without forcing you to necessarily follow the rules decided at the start, if you want you can write your own logic if necessary and expect that nothing will 'break'
Also, because you can't think about what you need before you need it 😉
composer require gianfriaur/package-loader
php artisan vendor:publish --provider="Gianfriaur\PackageLoader\PackageLoaderServiceProvider"
You can find the full documentation at this location
I have tried to reduce loading times to reasonably low times
obtaining good results
you can find the stress test in this test: tests/Stress/StressTest.php
Since PackageProvider extends ServiceProvider we can wonder why it has been given the possibility
to use a strategy specifically to load translations instead of using directly $this->loadTranslationsFrom($path,$namespace);
There is a very simple answer to this legitimate question, if for each PackageProvider it is necessary
to individually register a callback to the afterResolving and check if the 'translator' service has
been resolved and then load the translations, this as the packages increase can cause a drop in performance.
Yes it is true of just ~50 milliseconds for 100 packets
With the DefaultLocalizationStrategy Service this is done only once leaving only the time to read the files
But hey, there is, using it costs you nothing, but you save some time in requests
In the future there will be a command that will be loaded by the strategy that will allow you in production to collapse all the translation files of all the packages into a single one so that I could further reduce the times for loading all the translation files
JsonConfigurationStrategyServiceJollyConfigurationStrategyServiceViewStrategyServiceDatabaseConfigurationStrategyService