2017 © Pedro Peláez
 

library regex-validator

PHP library to validate regular expressions

image

antalaron/regex-validator

PHP library to validate regular expressions

  • Friday, December 1, 2017
  • by antalaron
  • Repository
  • 1 Watchers
  • 0 Stars
  • 3 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Regular expression validator

Build Status Coverage Status Latest Stable Version Latest Unstable Version License, (*1)

PHP library to validate regular expressions., (*2)

Installation

Open a command console, enter your project directory and execute the following command to download the latest stable version of this library:, (*3)

$ composer require antalaron/regex-validator

This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation., (*4)

Basic usage

To validate a regular expression:, (*5)

use Antalaron\RegexValidator\Regex;
use Symfony\Component\Validator\Validation;

$validator = Validation::createValidator();
$violations = $validator->validate('/foo/', new Regex());

if (0 !== count($violations)) {
    foreach ($violations as $violation) {
        echo $violation->getMessage().'<br>';
    }
}

License

This library is under MIT License., (*6)

The Versions

01/12 2017

dev-master

9999999-dev

PHP library to validate regular expressions

  Sources   Download

MIT

The Requires

 

The Development Requires

01/12 2017

v1.0.0

1.0.0.0

PHP library to validate regular expressions

  Sources   Download

MIT

The Requires

 

The Development Requires