Go to file
Henrique Moody 238f2d506a
Update validation engine
There are a few "problems" with the current engine:

- Allowing each rule to execute assert() and check() means duplication
  in some cases.

- Because we use exceptions to assert/check, we can only invert a
  validation (with Not) if there are errors. That means that we have
  limited granularity control.

- There is a lot of logic in the exceptions. That means that even after
  it throws an exception, something could still happen. We're stable on
  that front, but I want to simplify them. Besides, debugging exception
  code is painful because the stack trace does not go beyond the
  exception.

Apart from that, there are many limitations with templating, and working
that out in the current implementation makes it much harder.

These changes will improve the library in many aspects, but they will
also change the behavior and break backward compatibility. However,
that's a price I'm willing to pay for the improvements we'll have.

Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
2024-02-22 16:54:44 +01:00
.github Merge branch '2.3' 2024-01-27 20:41:28 +01:00
bin Fix broken documentation links 2024-02-19 11:34:26 +01:00
data/domain/public-suffix Remove ISO 3166-2 data in favor of PHP ISO codes 2024-02-13 21:53:46 +01:00
docs Fix broken documentation links 2024-02-19 11:34:26 +01:00
library Update validation engine 2024-02-22 16:54:44 +01:00
tests Update validation engine 2024-02-22 16:54:44 +01:00
.docheader Use SPDX IDs for licensing 2023-02-19 00:19:10 -03:00
.gitattributes Update list of files to be exported by Git 2020-07-29 10:35:36 +02:00
.gitignore Upgrade "phpunit/phpunit" 2024-01-28 14:16:52 +01:00
.readthedocs.yaml Create Read the Docs configuration file 2024-01-28 21:50:01 +01:00
CHANGELOG.md Check if property is initialized before getting its value 2024-01-27 20:36:01 +01:00
composer.json Improve output of PHPT tests 2024-02-17 16:33:49 +01:00
CONTRIBUTING.md Move Template to the Message namespace 2024-02-09 19:50:25 +01:00
LICENSE Dusting off. See CHANGELOG.md for more details on this commit 2023-02-13 03:59:11 -03:00
mkdocs.yml Create MkDocs configuration file 2018-12-11 09:25:41 +01:00
phpcs.xml.dist Update coding standards 2024-01-28 00:22:41 +01:00
phpstan.neon.dist Only pass the necessary parameters to the exceptions 2024-01-29 23:30:38 +01:00
phpunit.xml.dist Upgrade "phpunit/phpunit" 2024-01-28 14:16:52 +01:00
README.md Fix broken documentation links 2024-02-19 11:34:26 +01:00

Respect\Validation

Build Status Code Coverage Latest Stable Version Total Downloads License

The most awesome validation engine ever created for PHP.

Learn More: