2017 © Pedro PelĆ”ez
 

library doctrine-extensions

Doctrine2 behavioral extensions

image

spotlab/doctrine-extensions

Doctrine2 behavioral extensions

  • Tuesday, November 28, 2017
  • by leopoiroux
  • Repository
  • 4 Watchers
  • 2 Stars
  • 15,200 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 8 Versions
  • 73 % Grown

The README.md

Several Doctrine extensions

Version 1.0.0, (*1)

  • Nationalities available for "en" and "fr" locales

Extensions and Documentation

This package contains extensions that offer new functionalities. List of extensions:, (*2)

  • Nationality - this extension allows to create a new "Nationality" field. It gives access to a new assert and form field type. It uses the Intl locale and save data as indexes in the same format.

Installation

Download with composer

composer require spotlab/doctrine-extensions

Usage

Ex. Nationality Form Type Integration

In your form:, (*3)

public function buildForm(FormBuilderInterface $builder, array $options)
{
    $builder->add('nationality', NationalityType::class, array(
                'label' => 'user.label.nationality',
                'required' => true,
            ))
            // ...

Ex. Nationality Validator config

Add in your services.yml:, (*4)

spotlab.validator.Nationality:
    class: Spotlab\Validator\Constraints\NationalityValidator
    tags:
        - { name: validator.constraint_validator, alias: NationalityValidator }

Ex. Nationality Assert usage

In your entity:, (*5)

/**
 * @ORM\Column(type="string", length=2)
 * @SpotlabAssert\Nationality()
 */
protected $nationality;

License

This code is under MIT license., (*6)

The Versions

28/11 2017

dev-master

9999999-dev https://github.com/spotlab/doctrine-extensions

Doctrine2 behavioral extensions

  Sources   Download

MIT

The Requires

 

by BenoƮt Gambier

extensions form locale doctrine2 type behaviors intl fr spotlab nationality en

28/11 2017

v1.0.6

1.0.6.0 https://github.com/spotlab/doctrine-extensions

Doctrine2 behavioral extensions

  Sources   Download

MIT

The Requires

 

by BenoƮt Gambier

extensions form locale doctrine2 type behaviors intl fr spotlab nationality en

16/02 2017

v1.0.5

1.0.5.0 https://github.com/spotlab/doctrine-extensions

Doctrine2 behavioral extensions

  Sources   Download

MIT

The Requires

 

by BenoƮt Gambier

extensions form locale doctrine2 type behaviors intl fr spotlab nationality en

16/02 2017

v1.0.4

1.0.4.0 https://github.com/spotlab/doctrine-extensions

Doctrine2 behavioral extensions

  Sources   Download

MIT

The Requires

 

by BenoƮt Gambier

extensions form locale doctrine2 type behaviors intl fr spotlab nationality en

16/02 2017

v1.0.3

1.0.3.0 https://github.com/spotlab/doctrine-extensions

Doctrine2 behavioral extensions

  Sources   Download

MIT

The Requires

 

by BenoƮt Gambier

extensions form locale doctrine2 type behaviors fr spotlab nationality en

16/02 2017

v1.0.2

1.0.2.0 https://github.com/spotlab/doctrine-extensions

Doctrine2 behavioral extensions

  Sources   Download

MIT

The Requires

 

by BenoƮt Gambier

extensions form locale doctrine2 type behaviors fr spotlab nationality en

16/02 2017

v1.0.1

1.0.1.0 https://github.com/spotlab/doctrine-extensions

Doctrine2 behavioral extensions

  Sources   Download

MIT

The Requires

 

by BenoƮt Gambier

extensions form locale doctrine2 type behaviors fr spotlab nationality en

16/02 2017

v1.0.0

1.0.0.0 https://github.com/spotlab/doctrine-extensions

Doctrine2 behavioral extensions

  Sources   Download

MIT

The Requires

 

by BenoƮt Gambier

extensions form locale doctrine2 type behaviors fr spotlab nationality en