2017 © Pedro Peláez
 

symfony-bundle kit-generator-bundle

extend SensioGeneratorBundle

image

kitlabs/kit-generator-bundle

extend SensioGeneratorBundle

  • Thursday, July 19, 2018
  • by kitlabs
  • Repository
  • 2 Watchers
  • 3 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 12 Versions
  • -80 % Grown

The README.md

KitGeneratorBundle

extend SensioGeneratorBundle, (*1)

Installation

### Step 1: Download the Bundle

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:, (*2)

$ composer require kitlabs/kit-generator-bundle

This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation., (*3)

### Step 2: Enable the Bundle

Then, enable the bundle by adding it to the list of registered bundles in the app/AppKernel.php file of your project:, (*4)

<?php
// app/AppKernel.php

// ...
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        // ...
        if (in_array($this->getEnvironment(), ['dev', 'test'], true)) {
            // ...
            if ('dev' === $this->getEnvironment()) {
                // ...
                $bundles[] = new Kit\GeneratorBundle\KitGeneratorBundle(),
            }
        }
    }

    // ...
}

Usage

 //add table & field option comment 
 $ php7 bin/console kit:doctrine:generate:entity 

      Welcome to the kitlabs Doctrine2 entity generator

    This command helps you generate Doctrine2 entities.

    First, you need to give the entity name you want to generate.
    You must use the shortcut notation like AcmeBlogBundle:Post.

    The Entity shortcut name: MessageBundle:Test
    Enter table comment: this_is_table_comment #add table option comment 

    Determine the format to use for the mapping information.

    Configuration format (yml, xml, php, or annotation) [annotation]:

    Instead of starting with a blank entity, you can add some fields now.
    Note that the primary key will be added automatically (named id).

    Available types: array, simple_array, json_array, object,
    boolean, integer, smallint, bigint, string, text, datetime, datetimetz,
    date, time, decimal, float, binary, blob, guid.

    New field name (press <return> to stop adding fields): test_id
    Field type [integer]:
    Is nullable [false]:
    Unique [false]:
    Options:comment: this_is_field_comment # add table filed comment

    New field name (press <return> to stop adding fields):

      Entity generation

      created ./src/MessageBundle/Entity/Test.php
    > Generating entity class src/MessageBundle/Entity/Test.php: OK!
    > Generating repository class src/MessageBundle/Repository/TestRepository.php: OK!

      Everything is OK! Now get to work :).

kit:doctrine:generate:crud # generate controller, router and views
//theme
kit:doctrine:generate:crud:theme --theme=Pintuer

The Versions

19/07 2018

dev-master

9999999-dev https://github.com/kitlabs-cn/KitGeneratorBundle

extend SensioGeneratorBundle

  Sources   Download

MIT

The Requires

 

generator bundle generate crud generate form

19/07 2018

v0.2.7

0.2.7.0 https://github.com/kitlabs-cn/KitGeneratorBundle

extend SensioGeneratorBundle

  Sources   Download

MIT

The Requires

 

generator bundle generate crud generate form

18/07 2018

v0.2.6

0.2.6.0 https://github.com/kitlabs-cn/KitGeneratorBundle

extend SensioGeneratorBundle

  Sources   Download

MIT

The Requires

 

generator bundle generate crud generate form

17/07 2018

v0.2.5

0.2.5.0 https://github.com/kitlabs-cn/KitGeneratorBundle

extend SensioGeneratorBundle

  Sources   Download

MIT

The Requires

 

generator bundle generate crud generate form

17/07 2018

v0.2.4

0.2.4.0 https://github.com/kitlabs-cn/KitGeneratorBundle

extend SensioGeneratorBundle

  Sources   Download

MIT

The Requires

 

generator bundle generate crud generate form

17/07 2018

v0.2.3

0.2.3.0 https://github.com/kitlabs-cn/KitGeneratorBundle

extend SensioGeneratorBundle

  Sources   Download

MIT

The Requires

 

generator bundle generate crud generate form

17/07 2018

v0.2.2

0.2.2.0 https://github.com/kitlabs-cn/KitGeneratorBundle

extend SensioGeneratorBundle

  Sources   Download

MIT

The Requires

 

generator bundle generate crud generate form

17/07 2018

v0.2.1

0.2.1.0 https://github.com/kitlabs-cn/KitGeneratorBundle

extend SensioGeneratorBundle

  Sources   Download

MIT

The Requires

 

generator bundle generate crud generate form

17/07 2018

v0.2.0

0.2.0.0 https://github.com/kitlabs-cn/KitGeneratorBundle

extend SensioGeneratorBundle

  Sources   Download

MIT

The Requires

 

generator bundle generate crud generate form

17/07 2018

v0.1.3

0.1.3.0 https://github.com/kitlabs-cn/KitGeneratorBundle

extend SensioGeneratorBundle

  Sources   Download

MIT

The Requires

 

generator bundle generate crud generate form

16/07 2018

v0.1.2

0.1.2.0 https://github.com/kitlabs-cn/KitGeneratorBundle

extend SensioGeneratorBundle

  Sources   Download

MIT

The Requires

 

generator bundle generate crud generate form

07/09 2017

v0.1.0

0.1.0.0 https://github.com/kitlabs-cn/KitGeneratorBundle

extend SensioGeneratorBundle

  Sources   Download

MIT

The Requires

 

generator bundle generate crud generate form