abndevs / laravel-modules
Laravel Module management
Fund package maintenance!
abndevs
bishwajitcadhikary
Requires
- php: >=8.0
- ext-json: *
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.6
- laravel/framework: ^9.21
- mockery/mockery: ^1.4
- orchestra/testbench: ^7.0
- phpstan/phpstan: ^1.4
- phpunit/phpunit: ^9.5
- spatie/phpunit-snapshot-assertions: ^4.2
README
Install
To install through Composer, by run the following command:
composer require abndevs/laravel-modules
The package will automatically register a service provider and alias.
Optionally, publish the package's configuration file by running:
php artisan vendor:publish --provider="AbnDevs\Modules\LaravelModulesServiceProvider"
Autoloading
By default, the module classes are not loaded automatically. You can autoload your modules using psr-4
. For example:
{ "autoload": { "psr-4": { "App\\": "app/", "Modules\\": "Modules/", "Database\\Factories\\": "database/factories/", "Database\\Seeders\\": "database/seeders/" } }
Tip: don't forget to run composer dump-autoload
afterwards.
Documentation
You'll find installation instructions and full documentation on https://docs.laravelmodules.com/.
Credits
About Bishwajit Adhikary
Bishwajit Adhikary is a freelance web developer specialising on the Laravel framework. View all my packages on my website.
License
The MIT License (MIT). Please see License File for more information.