backtheweb/laravel-package-maker
最新稳定版本:0.1.0
Composer 安装命令:
composer require backtheweb/laravel-package-maker
包简介
A Laravel package to create new packages with a simple command
README 文档
README
![]()
Laravel PackageMaker
Installation
Install the package via composer:
$ composer require backtheweb/laravel-package-maker --dev
Publish the config file and edit it to your needs
$ php artisan vendor:publish --provider="Backtheweb\PackageMaker\PackageMakerServiceProvider" --tag="config"
Create a new folder called modules (or wherever you want, don't forget update the config file)
in the root of your Laravel project and add the following to your composer.json file:
"repositories": [
{
"type": "path",
"url": "modules/*/**",
"options": {
"symlink": false
}
]
$ php artisan make:package vendor/package
The command will create the following structure and files:
- packageName
- config
- packageName.php
- src
- PackageNameServiceProvider.php
- tests
- Feature
- Unit
- TestCase.php
- .gitignore
- CHANGELOG.md
- composer.json
- LICENSE
- phpunit.xml
- README.md
- config
USer --force option to overwrite existing files
$ php artisan make:package yourPackageName --force
How Laravel package development
https://laravelpackage.com/#reasons-to-develop-a-package
Credits
统计信息
- 总下载量: 21
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-05-09