2017 © Pedro Peláez
 

library error-extractor

image

lukaszwit/error-extractor

  • Wednesday, August 23, 2017
  • by lukaszwit
  • Repository
  • 1 Watchers
  • 0 Stars
  • 4 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Installing

composer require 'lukaszwit/error-extractor'

Usage

$validator = \Symfony\Component\Validator\Validation::createValidator();
$violations = $validator->validate('Bernhard', array(
    new \Symfony\Component\Validator\Constraints\Length(array('min' => 10)),
));

$simpleViolations = \Lukaszwit\ErrorExtractor\ViolationSimplifier::simplify(...$violations);

Running tests

To run test without code coverage:, (*1)

vendor/bin/phpunit --no-coverage

To run test with code coverage:, (*2)

phpdbg -qrr ./vendor/bin/phpunit

The Versions

23/08 2017

dev-master

9999999-dev

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar lukaszwit

23/08 2017

0.1.0

0.1.0.0

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar lukaszwit