overtrue / package-builder
此包已被废弃且不再维护。未建议替代包。
Composer 包构建工具。
2.0.1
2019-11-26 09:13 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: 2022-05-12 02:27:55 UTC
README
🚨 此项目已停止维护,建议使用以下两个模板快速创建项目:
包构建工具
📦 Composer 包构建工具。
安装
composer global require 'overtrue/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
❤️ 赞助我
如果你喜欢我的项目并想支持它,点击这里 ❤️
JetBrains 支持的项目
感谢 JetBrains 善意提供许可证,让我可以从事这个和其他开源项目的工作。
贡献
你可以通过以下三种方式之一进行贡献
代码贡献过程并不非常正式。你只需确保遵循 PSR-0、PSR-1 和 PSR-2 编码规范。任何新的代码贡献都必须附带适用的单元测试。
PHP 扩展包开发
想知道如何从头开始构建 PHP 扩展包吗?
请关注我的实战课程,我会在此课程中分享一些扩展开发经验 —— 《PHP 扩展包实战教程 - 从入门到发布》
许可证
MIT