2017 © Pedro Peláez
 

library php-symfony-validator-converter

Convert validation errors from different sources to different formats

image

sokil/php-symfony-validator-converter

Convert validation errors from different sources to different formats

  • Tuesday, March 28, 2017
  • by sokil
  • Repository
  • 1 Watchers
  • 0 Stars
  • 23 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

php-symfony-validator-converter

Installation

Add requirement to composer:, (*1)

composer require sokil/php-symfony-validator-converter

Add service to app or bundle services config:, (*2)

acme.validator.error_converter:
  class: Sokil\Converter\ValidationErrorsConverter

Usage

<?php

$errors = $this->get('validator')->validate($entity);
if (count($errors) > 0) {
    $list = $this
        ->get('acme.validator.error_converter')
        ->constraintViolationListToArray($errors);
}

The Versions

28/03 2017

dev-master

9999999-dev

Convert validation errors from different sources to different formats

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dmytro Sokil

19/03 2017

1.0.4

1.0.4.0

Convert validation errors from different sources to different formats

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dmytro Sokil

15/03 2017

1.0.3

1.0.3.0

Convert validation errors from different sources to different formats

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dmytro Sokil

08/08 2016

1.0.2

1.0.2.0

Convert validation errors from different sources to different formats

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dmytro Sokil