froeschke/modular-laravel
最新稳定版本:0.0.2
Composer 安装命令:
composer require froeschke/modular-laravel
包简介
README 文档
README
This packages simplifies making your Laravel application modular. It is intentionally kept simple, if you need more features check out nwidart/laravel-modules
The structure is inspired by this Laracon Talk from Ryuta Hamasaki (Repository)
Setup
composer require --dev froeschke/modular-laravel
php artisan modules:install
Optional: Publish the config file
php artisan vendor:publish --provider="Froeschke\ModularLaravel\ModularLaravelServiceProvider"
Create a module
php artisan modules:create ModuleName
Fix modules structure
Since empty folders are not in saved in git, you can run the following command, to ensure every folder exists:
php artisan modules:fix
Testing
To enable tests, you need to modify your phpunit.xml configuration.
Add the following two test suites (if you've changed the default paths, you may need to change the test path)
<testsuites> <testsuite name="Unit"> <directory suffix="Test.php">./modules/**/Tests/Unit</directory> </testsuite> <testsuite name="Feature"> <directory suffix="Test.php">./modules/**/Tests/Feature</directory> </testsuite> </testsuites>
统计信息
- 总下载量: 4
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-11-03