visanduma/laravel-module-installer
最新稳定版本:1.0.0
Composer 安装命令:
composer require visanduma/laravel-module-installer
包简介
README 文档
README
All packages that have type laravel-module in composer.json will be automatically move to 'Module' or configured folder
The purpose of this package is to allow for easy installation of standalone Modules into the Laravel Modules package. This package will ensure that your module is installed into the Modules/ directory instead of vendor/.
You can specify an alternate directory by including a module-dir , module-name in the extra data in your composer.json file:
"extra": {
"module-dir": "Custom",
"module-name": "PrettyName"
}
Installation
- Ensure you have the
typeset tolaravel-modulein your module's `composer.json Ensure your package is named in the convention<namespace>/<name>-module, for examplejoshbrw/user-modulewould install intoModules/User- Require this package:
composer require visanduma/laravel-module-installer - Require your bespoke module using Composer. You may want to set the constraint to
dev-masterto ensure you always get the latest version.
Notes
- When working on a module that is version controlled within an app that is also version controlled, you have to commit and push from inside the Module directory and then
composer updatewithin the app itself to ensure that the latest version of your module (dependant upon constraint) is specified in your composer.lock file.
统计信息
- 总下载量: 443
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-06-16