Attributes Validation Extension is the Pydantic validation library for PHP which allows you to validate data via type hints at speed of light ⚡️
- PHP 8.1 or later
- PHP development headers and tools (phpize, php-config)
- GCC or Clang compiler
- GNU Make
- autoconf 2.68 or later
- libtool
brew install php autoconf libtoolsudo apt-get install php-dev phpize autoconf libtool build-essentialsudo dnf install php-devel autoconf libtool gcc gcc-c++phpize
./configure --enable-validation_ext
makeOptionally install:
sudo make installphp -d extension=modules/validation_ext.so -r "var_dump(class_exists('Attributes\Validation\Validator'));"Run the complete PHPT test suite:
php run-tests.phpTo clean all configure and build files:
make distcleanValidation extension was created by André Gil and is open-sourced software licensed under the MIT license.