gjhuerte / php-code-generator
使用 PHP 生成代码的辅助类
1.0.0
2022-07-26 10:50 UTC
Requires
- php: >=7
Requires (Dev)
- phpunit/phpunit: ^7
- symfony/console: ^2.7
This package is auto-updated.
Last update: 2024-09-26 15:19:58 UTC
README
即时生成代码
安装
要求
- Composer
- PHP ^7.0
Composer
composer require gjhuerte/php-code-generator
导入包,然后即可使用。
use Aux\Generator\Code; $code = Code::generate(10);
使用示例(建设中)
默认令牌生成器
指定自定义格式
您还可以添加自己的独特验证
开发设置
您只需克隆仓库。运行 composer install
以安装所有测试依赖项。
git clone https://github.com/gjhuerte/php-code-generator.git
版本历史
-
1.0.0
- 为生成器提供更多官方功能
-
0.1.0
- 首次发布
元数据
加布里埃尔·杰伊·胡尔特 – @gjhuerte
在 MIT 许可下发布。有关更多信息,请参阅 LICENSE
。
https://github.com/gjhuerte/php-code-generator.git
贡献
- 分叉它 (https://github.com/gjhuerte/php-code-generator.git/fork)
- 创建您的功能分支 (
git checkout -b feature/fooBar
) - 提交您的更改 (
git commit -am 'Add some fooBar'
) - 推送到分支 (
git push origin feature/fooBar
) - 创建新的 Pull Request