aindong / pluggables
laravel 5 的插件功能/模块化结构助手
Requires
- php: >=5.4.0
- illuminate/config: ~5.0
- illuminate/console: ~5.0
- illuminate/database: ~5.0
- illuminate/filesystem: ~5.0
- illuminate/routing: ~5.0
- illuminate/support: ~5.0
Requires (Dev)
- mockery/mockery: ~0.9
- phpunit/phpunit: ~4.0
Suggests
- wikimedia/composer-merge-plugin: Allows the ability to create and merge composer.json files for your individual modules for module-specific dependency management.
This package is not auto-updated.
Last update: 2024-09-24 03:54:27 UTC
README
##Pluggables
一个模块化模式指南/生成器,用于轻松创建(更具模块化)的 Laravel 应用程序。它遵循 FIG PSR-1、PSR-2 和 PSR-4 编码标准。Pluggables 支持当前版本的 Laravel(5.1)。
##快速安装
您可以使用 composer
安装此包
composer require aindong/pluggables=~1.0
一旦 composer 操作完成,找到您的 config/app.php
并使用您的编辑器(vim、sublime、phpstorm 等)打开它。然后在服务 providers
数组中添加以下内容
Aindong\Pluggables\PluggablesServiceProvider::class,
然后向下滚动查看 facade
数组并添加以下内容
'Pluggables' => Aindong\Pluggables\Facades\Pluggable::class,
之后,您必须使用 php artisan vendor:publish
设置 pluggables 的配置文件,然后在配置文件夹中查找 pluggables.php。
您可以在应用程序开发期间开始使用 Plugegables
控制台命令和外观,要查看所有 pluggables 命令,只需在终端中输入此命令 php artisan
并检查 pluggables
。祝您玩得开心!
#####注意:开发阶段
#####即将推出单元测试。对于希望做出贡献的人,您现在可以始终通过 alleo.indong@gmail.com 联系我,谢谢!