PHPackages                             gianfriaur/package-loader - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. gianfriaur/package-loader

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

gianfriaur/package-loader
=========================

Laravel Package management

v1.1.2(2y ago)027[1 issues](https://github.com/GianfriAur/PackageLoader/issues)MITPHPPHP ^8.1

Since Mar 8Pushed 2y ago1 watchersCompare

[ Source](https://github.com/GianfriAur/PackageLoader)[ Packagist](https://packagist.org/packages/gianfriaur/package-loader)[ RSS](/packages/gianfriaur-package-loader/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (6)Used By (0)

PackageLoader
=============

[](#packageloader)

just another package manager for `laravel` nothing more and nothing less

but if you want to use it you are welcome

Goal
----

[](#goal)

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 😉

Install
-------

[](#install)

### Require package

[](#require-package)

> composer require gianfriaur/package-loader

### Publish configuration file

[](#publish-configuration-file)

> php artisan vendor:publish --provider="Gianfriaur\\PackageLoader\\PackageLoaderServiceProvider"

### First setup

[](#first-setup)

- [TODO:DOC: package in directory + json file retrieve method](#)
- [TODO:DOC: package in vendor + json file retrieve method](#)

### Tips

[](#tips)

- If it is useful you can manage the migrations of your packages in a parallel way from those of laravel [TODO:DOC: configure vault migration\_strategy](#)

Documentation
-------------

[](#documentation)

You can find the full documentation at [this location](./doc/README.md)

Stress Tests 😍
--------------

[](#stress-tests-)

I have tried to reduce loading times to reasonably low times

obtaining good results

- Load 10 packages : ~2 milliseconds
- Load 100 packages : ~10 milliseconds
- Load 1000 packages : ~400 milliseconds

you can find the stress test in this test: `tests/Stress/StressTest.php`

Why use LocalizationStrategy
----------------------------

[](#why-use-localizationstrategy)

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

Next releases
-------------

[](#next-releases)

- ### 1.1.x

    [](#11x)

    - Configuration
        - New strategy `JsonConfigurationStrategyService`
        - New strategy `JollyConfigurationStrategyService`
    - New Features
        - New kind of strategy `ViewStrategyService`
- ### 1.2.x

    [](#12x)

    - Localization
        - Production Compress Localization Command
    - Configuration
        - New strategy `DatabaseConfigurationStrategyService`
- ### 1.3.x

    [](#13x)

    - Configuration
        - Production Compress Configuration Command

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~78 days

Total

5

Last Release

849d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/fb72ba5d2c05eec08d9556c0007f17a7d657d5187de1025a4a0525ace4ac8000?d=identicon)[GianfriAur](/maintainers/GianfriAur)

---

Top Contributors

[![GianfriAur](https://avatars.githubusercontent.com/u/16904504?v=4)](https://github.com/GianfriAur "GianfriAur (35 commits)")

---

Tags

customizablelaravelpackage-managementparallel-migrationlaravelpackageloadermanagermodulemodulesgianfriaur

### Embed Badge

![Health badge](/badges/gianfriaur-package-loader/health.svg)

```
[![Health](https://phpackages.com/badges/gianfriaur-package-loader/health.svg)](https://phpackages.com/packages/gianfriaur-package-loader)
```

###  Alternatives

[zonneplan/laravel-module-loader

Module loader for Laravel

24118.4k](/packages/zonneplan-laravel-module-loader)[firefly-iii/data-importer

Firefly III Data Import Tool.

7545.8k](/packages/firefly-iii-data-importer)[cybercog/laravel-paket

Composer personal web interface. Manage Laravel dependencies without switching to command line!

1753.3k](/packages/cybercog-laravel-paket)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
