phakpoom / symfony-maker
2.2.0
2024-07-25 07:49 UTC
Requires
- php: >=8.0
- nette/php-generator: ^4.1
- phpdocumentor/reflection-docblock: ^5.3
- servo/fluidxml: ^1.21
- symfony/filesystem: ^5.4 | ^6.0 | ^7.0
- symfony/finder: ^5.4 | ^6.0 | ^7.0
- symfony/framework-bundle: ^5.4 | ^6.0 | ^7.0
- symfony/options-resolver: ^5.4 | ^6.0 | ^7.0
Requires (Dev)
- phpunit/phpunit: ^11.0
- rector/rector: ^0.13.5
- sylius-labs/coding-standard: ^4.2
- sylius/resource-bundle: ^1.9
This package is auto-updated.
Last update: 2024-09-09 20:51:43 UTC
README
(长期支持) master php8+
(停止支持) 1.0.0 php7.2+
使用 composer 进行安装
{ "repositories": [ { "type": "vcs", "url": "https://github.com/phakpoom/symfony-maker.git" } ] }, "require-dev": { "phakpoom/symfony-maker": "dev-master", },
启用 Bundle
Bonn\Maker\Bridge\MakerBundle\BonnMakerBundle::class => ['dev' => true]
配置
注意!确保配置仅用于开发环境
bonn_maker: namespace_prefix: "App" # prefix namespace bundle_root_dir: "%kernel.project_dir%/src/App/" # use for list directories for generate class cache_dir: ~ # default cache_dir symfony cache_max_keep_versions: ~ # maximum keep class version for rollback writer_dev: ~ # if `true` it will echo on console instead create file // ... and many config about dir
使用方法
生成模型和 doctrine 映射
./bin/console bonn:model:maker --help
许多命令
./bin/console bonn