2017 © Pedro Peláez
 

symfony-bundle br-validator-bundle

Bundle for Symfony with validators for Brazilian location.

image

mero/br-validator-bundle

Bundle for Symfony with validators for Brazilian location.

  • Monday, May 29, 2017
  • by merorafael
  • Repository
  • 1 Watchers
  • 0 Stars
  • 59 Installations
  • PHP
  • 0 Dependents
  • 2 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

MeroBrValidatorBundle

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

Bundle for Symfony with validators for Brazilian location., (*2)

Requeriments

  • PHP 5.4.9 or above
  • Symfony 2.8 or above(including Symfony 3)

Instalation with composer

  1. Open your project directory;
  2. Run composer require mero/br-validator-bundle to add MeroBrValidatorBundle in your project vendor;
  3. Open my/project/dir/app/AppKernel.php;
  4. Add Mero\Bundle\BrValidatorBundle\MeroBrValidatorBundle().

Symfony validators

Applies to Options Class Validator Description
property or method message CPF CPFValidator Validates number of CPF(individual registration)
property or method message CNH CNHValidator Validates number of CNH(national driving license)
property or method message CNPJ CNPJValidator Validates number of CNPJ(corporate registration)

Basic usage

<?php

use Mero\Bundle\BrValidatorBundle\Validator\Constraints as BrAssert;

class People
{
    /**
     * @var string Brazilian individual registration
     *
     * @BrAssert\CPF()
     */
    private $cpf;

    /**
     * @var string Brazilian corporate registration
     *
     * @BrAssert\CNPJ()
     */
    private $cnpj;

    /**
     * @var string Brazilian national driving license
     *
     * @BrAssert\CNH()
     */
    private $cnh;
}

The Versions

29/05 2017

dev-master

9999999-dev https://github.com/merorafael/MeroBrValidatorBundle

Bundle for Symfony with validators for Brazilian location.

  Sources   Download

MIT

The Requires

  • php >=5.4.9

 

The Development Requires

validator symfony brazil sf mero

22/06 2016

1.1.0

1.1.0.0 https://github.com/merorafael/MeroBrValidatorBundle

Bundle for Symfony with validators for Brazilian location.

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

The Development Requires

validator symfony brazil sf mero

22/06 2016

1.0.0

1.0.0.0 https://github.com/merorafael/MeroBrValidatorBundle

Bundle for Symfony with validators for Brazilian location.

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

The Development Requires

validator symfony brazil sf mero