Go to file
Wojciech Frącz 83bb6e3fc9
Fix wrong behavior when using templates
When a template is set for a chain of rules, does not really matter
which messages the chain can have, the only message to be used should be
the one based on the defined template.

This commit set the same template of a parent rule to its children's
exception. Our first thought was to set the template to its children
however that would mean that if another rule would be added to the chain
we would have to set it as well. Doing that to the children's exception
make sure we only do that once.

Co-authored-by: Henrique Moody <henriquemoody@gmail.com>
2018-07-02 07:57:21 +02:00
docs Make clear that "Alnum" rule accepts whitespaces 2018-07-01 14:27:41 +02:00
library Fix wrong behavior when using templates 2018-07-02 07:57:21 +02:00
tests Fix wrong behavior when using templates 2018-07-02 07:57:21 +02:00
.gitignore Add "composer.lock" to the .gitignore list 2015-10-17 14:10:41 -03:00
.php_cs Use short array syntax 2015-10-17 22:56:32 -03:00
.scrutinizer.yml Use PSR-2 standard 2015-01-08 00:44:12 -02:00
.travis.yml Run PHP 7.1 on Travis 2016-08-03 09:41:33 +02:00
CHANGELOG.md Update "CHANGELOG.md" file 2016-04-23 22:11:23 -03:00
composer.json Update composer.json 2018-06-20 23:25:11 +03:00
CONTRIBUTING.md Update contributing guidelines 2015-11-18 05:47:35 -02:00
couscous.yml Add Google Analytics tracking ID to "couscous.yml" 2015-02-18 08:49:05 -02:00
LICENSE.md Create "CHANGELOG.md" file 2015-10-07 02:56:23 -03:00
phpunit.xml.dist Create "SubdivisionCode" rule 2015-09-21 13:54:02 -03:00
README.md Revert "Add link to support issues." 2018-05-19 16:17:52 +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::numeric()->positive()->between(1, 255)->validate($input).
  • Granularity control for advanced reporting.
  • More than 100 (fully tested) validators.
  • A concrete API for non fluent usage.
  • Works on PHP 5.4+ or HHVM 3.3+

Table of contents