2017 © Pedro Peláez
 

symfony-bundle crud

Crud Bundle

image

opstalent/crud

Crud Bundle

  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 8 Versions
  • 0 % Grown

The README.md

Crud Bundle

Build Status Coverage Status, (*1)

This bundle provides basic CRUD functionality. We provide simple entity annotations to create forms on the fly., (*2)


Install

Composer

Install package via composer:, (*3)

$ composer require opstalent/crud

Enable OpstalentCrudBundle in /app/AppKernel.php, (*4)

public function registerBundles()
{
    $bundles = array(
        // ...
        new Opstalent\CrudBundle\OpstalentCrudBundle(),
        // ...
    );
}

Annotations

Entity

Entity annotation provides easy way to define possible CRUD actions for each entity., (*5)

Allowed actions are: * addable for entities which can be added through crud bundle, * getable for entities which can be get through crud bundle, * listable for entities which can be listed through crud bundle, * editable for entities which can be edited through crud bundle, * deletable for entities which can be deleted through crud bundle., (*6)

All other actions will raise Doctrine\Common\Annotations\AnnotationException., (*7)

In order to use Entity Annotation you need to add, (*8)

use Opstalent\CrudBundle\Annotation\Entity;

/**
 * Class Category
 * @Entity(actions={"addable", "deletable"}) // Define available actions here
 */
 class Category
 {
    // ...
 }

Field

Field annotation provides easy way to define possible fields for every CRUD actions for entity., (*9)

Allowed actions are: * addable for entities which can be added through crud bundle, * getable for entities which can be get through crud bundle, * listable for entities which can be listed through crud bundle, * editable for entities which can be edited through crud bundle, * deletable for entities which can be deleted through crud bundle., (*10)

All other actions will raise Doctrine\Common\Annotations\AnnotationException., (*11)

use Opstalent\CrudBundle\Annotation\Field;

 /**
 * Class Category
 */
 class Category
 {
    /**
    * @Field(actions={"addable", "editable"}) // Define available actions here
    */
    protected $name;

    // ...
 }

All other actions will raise Doctrine\Common\Annotations\AnnotationException., (*12)


API Reference

FormFactoryService, (*13)

FormConfigResolver, (*14)

AnnotationResolver, (*15)

FormEventListener, (*16)

RequestListener, (*17)

License

This bundle is under the MIT license., (*18)

The Versions

24/10 2017

dev-dependencyInjection

dev-dependencyInjection

Crud Bundle

  Sources   Download

MIT

The Requires

 

The Development Requires

crud symfony 3.4

19/10 2017

dev-annotation-entity

dev-annotation-entity

Crud Bundle

  Sources   Download

MIT

The Requires

 

The Development Requires

crud symfony 3.4