Laravel Modules
Laravel Modules stats
- Downloads
- 6M
- Stars
- 4,994
- Open Issues
- 7
- Forks
- 908
Laravel Module management
Laravel-Modules Summary
The nwidart/laravel-modules is a robust Laravel package designed to enhance application modularity, allowing developers to manage their projects through independent modules similar to individual Laravel packages. This approach is particularly useful for maintaining large applications, encapsulating features such as views, controllers, and models within discrete modules.
Key Features
- Modular Management: Organize a large Laravel application into manageable modules.
- Autoloading Support: Utilizes PSR-4 autoloading for managing module classes.
- Test-Driven: Includes tests, adding reliability over its predecessor
pingpong/modules. - Ease of Installation: Easy to install via Composer and integrates automatically with Laravel's service provider.
Installation and Usage
Install the package via Composer:
composer require nwidart/laravel-modules
To publish the configuration file, run:
php artisan vendor:publish --provider="Nwidart\Modules\LaravelModulesServiceProvider"
For autoloading modules, add the following to your composer.json and execute composer dump-autoload:
{ "autoload": { "psr-4": { "App\\": "app/", "Modules\\": "Modules/" } }}
Documentation and Support
Full documentation is available at Laravel Modules Documentation. This package is maintained by Nicolas Widart and supported by other community contributors.
For more details about using and configuring modules, visit the official documentation page. This package supports various Laravel versions from 5.4 up to the latest release, ensuring compatibility and ease of integration across multiple Laravel projects.