2017 © Pedro Peláez
 

library validator-pcre

PCRE validation layer

image

hylianshield/validator-pcre

PCRE validation layer

  • Tuesday, July 26, 2016
  • by johmanx10
  • Repository
  • 3 Watchers
  • 0 Stars
  • 41 Installations
  • PHP
  • 1 Dependents
  • 1 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 41 % Grown

The README.md

HylianShield Validator PCRE

This package extends the HylianShield Validator and implements a PCRE expression validator., (*1)

Configuration

No additional configuration required, (*2)

Expression

The package exposed an Expression entity, which tests if the given pattern is a valid PCRE pattern and then proceeds to store that pattern., (*3)

$expression = new \HylianShield\Validator\Pcre\Expression('/foo/');

echo $expression->getPattern(); // "/foo/"

Expression Validator

The expression validator extends the expression entity and implements the validator interface., (*4)

$validator = new \HylianShield\Validator\Pcre\ExpressionValidator('/foo/');

echo $validator->getPattern(); // "/foo/"
echo $validator->getIdentifier(); // "pcre(/foo/)"

$validator->validate('foo'); // true
$validator->validate('bar'); // false

The Versions

26/07 2016

dev-master

9999999-dev https://github.com/HylianShield/validator-pcre

PCRE validation layer

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

26/07 2016

1.0.0

1.0.0.0 https://github.com/HylianShield/validator-pcre

PCRE validation layer

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires