Go to file
Henrique Moody 779c0c1503
Do not accept whitespace by default in "Alnum" rule
The "Alnum" rule is supposed to validate alphanumeric values, but
instead, it also validates any whitespace character as valid.

The rule also accepts a list of characters on its constructor, so it the
users intentionally want some specific characters to also be allowed it
is better than they also defined these characters on the rule's
constructor.

While refactoring the rule I could notice that "AbstractCtypeRule" is
just an overhead that does not add much to it, so instead of extending
it "Alnum" now extends "AbstractFilterRule" directly (which is the
parent of "AbstractCtypeRule").

And since we want all rules to follow our contribution guidelines, this
commit also make sure the "Alnum" rule is in accordance with that.

Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
2018-09-04 00:05:24 +02:00
docs Do not accept whitespace by default in "Alnum" rule 2018-09-04 00:05:24 +02:00
library Do not accept whitespace by default in "Alnum" rule 2018-09-04 00:05:24 +02:00
tests Do not accept whitespace by default in "Alnum" rule 2018-09-04 00:05:24 +02:00
.docheader Add license check by file to build 2016-10-29 12:31:13 +02:00
.gitattributes Create ".gitattributes" file 2017-02-10 14:55:35 +01:00
.gitignore Setup PHPStan (PHP Static Analysis Tool) 2018-08-22 19:10:20 +02:00
.php_cs Enforce the use of "@covers" annotation 2018-07-23 21:37:38 +02:00
.scrutinizer.yml Migrate to new PHP Analysis 2018-01-09 16:19:27 +01:00
.travis.yml Setup PHPStan (PHP Static Analysis Tool) 2018-08-22 19:10:20 +02:00
CHANGELOG.md Organize documentation for "Read the Docs" 2018-08-23 01:59:39 +02:00
composer.json Upgrade PHPUnit version 2018-09-03 17:37:44 +02:00
CONTRIBUTING.md Merge branch '1.1' 2018-08-23 02:12:44 +02:00
couscous.yml Add Google Analytics tracking ID to "couscous.yml" 2015-02-18 08:49:05 -02:00
LICENSE.md Merge branch '1.1' 2018-08-23 02:12:44 +02:00
phpstan.neon.dist Setup PHPStan (PHP Static Analysis Tool) 2018-08-22 19:10:20 +02:00
phpunit.xml.dist Upgrade PHPUnit version 2018-09-03 17:37:44 +02:00
README.md Merge branch '1.1' 2018-08-23 02:12:44 +02:00

Respect\Validation

Build Status Scrutinizer Code Quality Code Coverage Latest Stable Version Total Downloads License

The most awesome validation engine ever created for PHP.

  • Complex rules made simple: v::numericVal()->positive()->between(1, 255)->validate($input).
  • Granularity control for advanced reporting.
  • More than 130 (fully tested) validation rules.
  • A concrete API for non fluent usage.

Documentation

Documentation can be found in https://respect-validation.readthedocs.io and also in the docs/ folder.

Table of contents