Go to file
Henrique Moody ab602ae1bb
Improve how to customize the Factory
The constructor of "Factory" has three arguments and, even though none
of them are needed, they are all required. Those arguments allow users
to customize the namespaces of rules and exceptions, and also to define
a callable that will translate the template messages.

This commit will remove those parameters from the constructor of
"Factory," and create methods that will allow users to customize the
namespaces and the translator.

The methods that this commit will create will not change the state of
"Factory," but they will create a clone with the customizations. It is
imperative that the "Factory" is immutable. Since the "Factory" is a
Singleton, allowing it to change could cause unexpected behaviors.

Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
2019-05-12 12:24:44 +02:00
data/iso_3166-2 Remove subdivision code rules per country 2019-04-06 23:05:24 +02:00
docs Improve how to customize the Factory 2019-05-12 12:24:44 +02:00
library Improve how to customize the Factory 2019-05-12 12:24:44 +02:00
tests Improve how to customize the Factory 2019-05-12 12:24:44 +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 Set up "squizlabs/php_codesniffer" 2019-02-03 19:39:14 +01: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 Fix syntax issue in ".travis.yml" file 2019-05-05 16:52:56 +02:00
CHANGELOG.md Organize documentation for "Read the Docs" 2018-08-23 01:59:39 +02:00
composer.json Use "Respect" coding standard 2019-05-11 20:51:39 +02:00
CONTRIBUTING.md Make default templates non-static and protected 2019-05-12 09:57:07 +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
mkdocs.yml Create MkDocs configuration file 2018-12-11 09:25:41 +01:00
phpcs.xml.dist Use "Respect" coding standard 2019-05-11 20:51:39 +02:00
phpstan.neon.dist Apply "phpstan/phpstan-deprecation-rules" rules 2019-05-05 15:18:09 +02:00
phpunit.xml.dist Remove subdivision code rules per country 2019-04-06 23:05:24 +02:00
README.md Increase the number of rules we have in README.md 2019-04-06 23:46:25 +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 150 (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