ats / generator-bundle
The "ATS DIGITAL" Symfony generator bundle.
v1.0.5
2019-01-21 16:51 UTC
Requires
- php: >=7.0
- ats/core-bundle: ^1.0
- fzaninotto/faker: ^1.8
- sensio/framework-extra-bundle: ~3.0
- sensio/generator-bundle: ^3.0
- symfony/cache: 3.4.*
- symfony/config: 3.4.*
- symfony/console: 3.4.*
- symfony/dependency-injection: 3.4.*
- symfony/event-dispatcher: 3.4.*
- symfony/filesystem: 3.4.*
- symfony/finder: 3.4.*
- symfony/http-foundation: 3.4.*
- symfony/http-kernel: 3.4.*
- symfony/monolog-bundle: ^3.1.0
- symfony/routing: 3.4.*
- symfony/twig-bundle: 3.4.*
- symfony/yaml: ^3.4
Requires (Dev)
- kint-php/kint: ^2.2
- phpstan/phpstan: ^0.10.3
- phpstan/phpstan-symfony: ^0.10.1
- squizlabs/php_codesniffer: ^3.3
- symfony/browser-kit: 3.4.*
- symfony/debug: 3.4.*
- symfony/dom-crawler: 3.4.*
- symfony/framework-bundle: 3.4.*
- symfony/phpunit-bridge: 3.4.*
- symfony/process: 3.4.*
- symfony/var-dumper: 3.4.*
- symfony/web-server-bundle: 3.4.*
- symfony/yaml: ^3.4
Provides
- ext-mongo: *
This package is not auto-updated.
Last update: 2021-09-19 19:46:27 UTC
README
General
General-purpose CRUD generator for Symfony-enabled web applications. Generates Doctrine documents and related stuff (Repositories, managers, services and rest CRUD controllers)
Features & Capabilities
This bundle provides the following commands:
ats:generator:generate:document
: Used to generate Doctrine ODM Documents, Managers & CRUD Servicesats:generator:generate:rest
: Used to generate Symfony REST-compliant controllers. Controller logic is divided between Services, Managers and Repositories, as dictated by ats/core-bundle guidelines.ats:generator:generate:fake
: Used to generate fake data (Based on the Faker library)
Setup
N.B. : This bundle is designed to be used solely in a development environment
- Install the bundle in your application
$ php composer require ats/generator-bundle --dev
Register the bundle in the AppKernel
<?php class AppKernel extends Kernel { public function registerBundles() { $bundles = [ // production-enabled bundles... ]; if ('dev' === $this->getEnvironment()) { // ... $bundles[] = new ATS\GeneratorBundle\ATSGeneratorBundle(); } } // ... }
- You're all set.
Configuration
- No configuration required.
Roadmap
- Doctrine ORM support
- Multi-document generation