gohiljayvirsinh / laravel-modules
Laravel SPA 模块管理
8.2.2
2021-09-22 12:40 UTC
Requires
- php: >=7.3
- ext-json: *
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.16
- laravel/framework: ^8.0
- mockery/mockery: ~1.0
- orchestra/testbench: ^6.2
- phpstan/phpstan: ^0.12.14
- phpunit/phpunit: ^8.5
- spatie/phpunit-snapshot-assertions: ^2.1.0|^4.2
- 8.2.2
- 8.2.1
- 8.2.0
- 8.1.0
- dev-master / 8.0.x-dev
- 8.0.0
- 7.3.0
- 7.2.0
- 7.1.0
- 7.0.x-dev
- 7.0.0
- 6.2.0
- 6.1.0
- 6.0.x-dev
- 6.0.0
- 5.1.0
- 5.0.x-dev
- 5.0.1
- 5.0.0
- 4.1.0
- 4.0.x-dev
- 4.0.0
- 3.3.1
- 3.3.0
- 3.2.1
- 3.2.0
- 3.1.0
- 3.0.x-dev
- 3.0.1
- 3.0.0
- 2.7.0
- 2.6.0
- 2.5.0
- 2.4.1
- 2.4.0
- 2.3.0
- 2.2.1
- 2.2.0
- 2.1.0
- 2.0.x-dev
- 2.0.0
- 1.27.2
- 1.27.1
- 1.27.0
- 1.26.0
- 1.25.1
- 1.25.0
- 1.24.0
- 1.23.0
- 1.22.0
- 1.21.0
- 1.20.0
- 1.19.0
- 1.18.0
- 1.17.1
- 1.17.0
- 1.16.0
- 1.15.0
- 1.14.0
- 1.13.1
- 1.13.0
- 1.0.x-dev
- 0.12.0
- 0.11.2
- 0.11.1
- 0.11.0
- 0.10
- 0.9
- 0.8
- 0.7
- 0.6
- 0.5
- 0.4
- 0.3
- 0.2
- 0.1
- dev-feature/use-laravel-migrator
- dev-feature/database-modules
This package is auto-updated.
Last update: 2024-09-04 17:42:50 UTC
README
nwidart/laravel-modules
是一个 Laravel 扩展包,用于通过模块管理大型 Laravel 应用。模块类似于 Laravel 扩展包,包含一些视图、控制器或模型。本扩展包在 Laravel 8 上得到支持和测试。
这是一个重新发布、重新组织和维护的版本,基于 pingpong/modules,该版本已不再维护。本扩展包被用于 AsgardCMS。
原扩展包没有的一个大优点是:测试。
在以下文章中了解为什么应该使用本扩展包: 使用laravel-modules编写模块化应用。
安装
通过Composer安装,运行以下命令
composer require nwidart/laravel-modules
扩展包将自动注册服务提供者和别名。
可选,通过运行以下命令发布扩展包的配置文件
php artisan vendor:publish --provider="Nwidart\Modules\LaravelModulesServiceProvider"
自动加载
默认情况下,模块类不会自动加载。您可以使用 psr-4
自动加载您的模块。例如
{ "autoload": { "psr-4": { "App\\": "app/", "Modules\\": "Modules/" } } }
提示:不要忘记运行 composer dump-autoload
。
文档
您可以在 https://nwidart.com/laravel-modules/ 上找到安装说明和完整文档。
致谢
关于Nicolas Widart
Nicolas Widart 是一位专注于 Laravel 框架的自由职业网页开发者。在我的网站上查看所有我的扩展包 https://nwidart.com/,或访问我的网站 https://nicolaswidart.com。
许可
MIT 许可协议 (MIT)。有关更多信息,请参阅 许可文件。