phakpoom/symfony-maker

2.0.0 2022-06-22 10:40 UTC

This package is auto-updated.

Last update: 2022-07-30 10:27:21 UTC


README

Build Status

(LTS) master php8+

(Drop Support) 1.0.0 php7.2+

Installation with composer

{
    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/phakpoom/symfony-maker.git"
        }
    ]
},
"require-dev": {
    "phakpoom/symfony-maker": "dev-master",
},

Enabled Bundle

Bonn\Maker\Bridge\MakerBundle\BonnMakerBundle::class => ['dev' => true]

Config

Beware! make sure that config only dev

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

Usage

Generate model and doctrine mapping

./bin/console bonn:model:maker --help

Many Commands

./bin/console bonn