Go to file
Henrique Moody 718bacad04
Remove subdivision code rules per country
There is no much benefit from having individual rules for each country's
subdivision, quite the opposite. It increases the amount of code and
makes it hard to change the implementation of these rules. Right now,
the only sane way to change those rules is with a customized script.

This commit will remove the Subdivision Code rules per country and
instead will put that information into JSON files.

We both wouldn't like to keep this in this library anymore, and we are
considering having another library to deal with this data [1], but since
it seems like it may take some time, looks better to do it temporarily
here.

[1]: https://github.com/sokil/php-isocodes/issues/12

Co-authored-by: Mazen Touati <mazen_touati@hotmail.com>
Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
2019-04-06 23:05:24 +02:00
data/iso_3166-2 Remove subdivision code rules per country 2019-04-06 23:05:24 +02:00
docs Apply contribution guidelines to "No" rule 2019-04-05 20:25:00 +02:00
library Remove subdivision code rules per country 2019-04-06 23:05:24 +02:00
tests Remove subdivision code rules per country 2019-04-06 23: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 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 Set up "squizlabs/php_codesniffer" 2019-02-03 19:39:14 +01:00
CHANGELOG.md Organize documentation for "Read the Docs" 2018-08-23 01:59:39 +02:00
composer.json Refactor "Zend" rule 2019-03-10 22:13:16 +01:00
CONTRIBUTING.md Fix the case of the "@inheritDoc" tag 2019-04-05 19:02:12 +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 Update the Coding Standards 2019-02-17 19:52:26 +01:00
phpstan.neon.dist Increate PHPStan level to 7 2019-02-04 01:12:08 +01:00
phpunit.xml.dist Remove subdivision code rules per country 2019-04-06 23:05:24 +02:00
README.md Update PHP support 2018-12-02 11:09:24 +01: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