hongyukeji / package-builder
Composer 包构建器。
v1.2.0
2020-04-14 02:35 UTC
Requires
- symfony/console: ^5.0.0
- symfony/filesystem: ^5.0.0
- symfony/process: ^5.0.0
Requires (Dev)
- phpunit/phpunit: ^7.5
This package is auto-updated.
Last update: 2024-09-14 12:08:52 UTC
README
📦 Composer 包构建器。
安装
$ composer global require 'hongyukeji/package-builder' --prefer-source
使用方法
$ package-builder help
创建 composer 包
请确保 ~/.composer/vendor/bin/
已添加到您的路径中。
package-builder build [target directory]
示例
$ package-builder build ./ # Please enter the name of the package (example: foo/bar): vendor/product # Please enter the namespace of the package [Vendor\Product]: # Do you want to test this package ?[Y/n]: # Do you want to use php-cs-fixer format your code ? [Y/n]: # Please enter the standard of php-cs-fixer [symfony] ? # Package vendor/product created in: ./
以下包将被创建
vendor-product
├── .editorconfig
├── .gitattributes
├── .gitignore
├── .php_cs
├── README.md
├── composer.json
├── phpunit.xml.dist
├── src
│ └── .gitkeep
└── tests
└── .gitkeep
更新包构建器
$ package-builder update
贡献
您可以通过以下三种方式之一进行贡献:
代码贡献过程并不十分正式。您只需确保遵循 PSR-0、PSR-1 和 PSR-2 编码规范。任何新的代码贡献必须附带适用的单元测试。
许可证
MIT