2017 © Pedro Peláez
 

library saxulum-crud

Saxulum CRUD

image

saxulum/saxulum-crud

Saxulum CRUD

  • Friday, April 20, 2018
  • by dominikzogg
  • Repository
  • 2 Watchers
  • 1 Stars
  • 625 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 2 Open issues
  • 52 Versions
  • 0 % Grown

The README.md

saxulum-crud

Build Status Total Downloads Latest Stable Version Scrutinizer Code Quality, (*1)

Features

Requirements

  • php: >=5.4,
  • doctrine/common: ~2.5,
  • symfony/form: ~2.7,
  • symfony/http-kernel: ~2.7,
  • symfony/routing: ~2.7,
  • symfony/security: ~2.7
  • twig/twig: ~1.2

Installation

Through Composer as saxulum/saxulum-crud., (*2)

Usage

Trait

Use the following trait within your controller: Saxulum\Crud\Controller\CrudTrait., (*3)

Base configuration

  • crudName: contains the lowercase name of the object, example: sample
  • crudObjectClass: contains the class name of the object, example: Saxulum\Crud\Entity\Sample

Advanced configuration

  • crudRoutePattern: contains a template pattern like: %s_%s
  • crudRolePattern: contains a template pattern like: role_%s_%s
  • crudTemplatePattern: contains a template pattern like: @SaxulumCrud/%s/%s.html.twig

Services

  • crudAuthorizationChecker: contains an instance of the symfony authorization checker
  • crudDoctrine: contains an instance of the doctrine manager registry
  • crudPaginator: contains an instance of a knp paginator
  • crudFormFactory: contais an instance of a symfony form factory
  • crudUrlGenerator: contains an instance of symfony routing url generator
  • ~~crudSecurity~~: deprecated by symfony 2.7, use crudAuthorizationChecker
  • crudTwig: contains an instance of the twig environment

Twig: form label generation

Use the following extension to use label generation: [Saxulum\Crud\Twig\FormLabelExtension][8]., (*4)

Within the form template you can use something like this:, (*5)

```{.twig} {% block form_label %} {% spaceless %} {% if label is empty %} {% set label = prepareFormLabel(form) %} {% endif %} {{ parent() }} {% endspaceless %} {% endblock form_label %}, (*6)


#### Example The form name is `day_edit`, there is a collection field `comestiblesWithinDay` with a subfield called `comestible`. As you can see the `_` within the name will be replaced by a `.`. ```{.yaml} day: edit: label: comestibles_within_day: Consumption comestibles_within_day_collection: comestible: Comestible

Advanced names: If you want the underscore within the form name, work with camel case. Which means someFormName_edit will be converted to some_form_name.edit., (*7)

The Versions

20/04 2018

v1.x-dev

1.9999999.9999999.9999999-dev

Saxulum CRUD

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dominik Zogg

silex crud symfony saxulum

13/12 2015

1.x-dev

1.9999999.9999999.9999999-dev

Saxulum CRUD

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dominik Zogg

silex crud symfony saxulum

03/06 2015
03/06 2015
03/06 2015
08/05 2015
08/05 2015
10/03 2015
10/03 2015
26/02 2015
22/02 2015
22/02 2015

2.0-alpha8

2.0.0.0-alpha8

Saxulum CRUD

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dominik Zogg

silex crud symfony saxulum

22/02 2015

2.0-alpha7

2.0.0.0-alpha7

Saxulum CRUD

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dominik Zogg

silex crud symfony saxulum

22/02 2015

2.0-alpha6

2.0.0.0-alpha6

Saxulum CRUD

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dominik Zogg

silex crud symfony saxulum

22/02 2015
17/02 2015
17/02 2015
14/02 2015

2.0-alpha5

2.0.0.0-alpha5

Saxulum CRUD

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dominik Zogg

silex crud symfony saxulum

11/02 2015
05/02 2015

2.0-alpha4

2.0.0.0-alpha4

Saxulum CRUD

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dominik Zogg

silex crud symfony saxulum

05/02 2015

2.0-alpha3

2.0.0.0-alpha3

Saxulum CRUD

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dominik Zogg

silex crud symfony saxulum

05/02 2015

2.0-alpha2

2.0.0.0-alpha2

Saxulum CRUD

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dominik Zogg

silex crud symfony saxulum

04/02 2015
04/02 2015
04/02 2015

2.0-alpha1

2.0.0.0-alpha1

Saxulum CRUD

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dominik Zogg

silex crud symfony saxulum

02/02 2015
30/01 2015
30/01 2015
30/01 2015
28/01 2015

1.0-beta7

1.0.0.0-beta7

Saxulum CRUD

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dominik Zogg

silex crud symfony saxulum

28/01 2015
27/01 2015

1.0-beta6

1.0.0.0-beta6

Saxulum CRUD

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dominik Zogg

silex crud symfony saxulum

27/01 2015

1.0-beta5

1.0.0.0-beta5

Saxulum CRUD

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dominik Zogg

silex crud symfony saxulum

26/01 2015

1.0-beta4

1.0.0.0-beta4

Saxulum CRUD

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dominik Zogg

silex crud symfony saxulum

26/01 2015

1.0-beta3

1.0.0.0-beta3

Saxulum CRUD

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dominik Zogg

silex crud symfony saxulum

26/01 2015

1.0-beta2

1.0.0.0-beta2

Saxulum CRUD

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dominik Zogg

silex crud symfony saxulum

24/01 2015

1.0-beta1

1.0.0.0-beta1

Saxulum CRUD

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dominik Zogg

silex crud symfony saxulum