Download the PHP package eureka/component-validation without Composer
On this page you can find all versions of the php package eureka/component-validation. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package component-validation
component-validation
Validation Component
Usage
Validator Factory
Validation component use php native filter_var()
to validate contents.
Please refer to Validate filters and
filter_var() for more information about options & flags.
Generic Entity
Validation component could be used to validate form. But to avoid set an invalid domain entity (a domain Entity should always be complete and valid), you can use generic entity factory.
This factory can create a pseudo entity with auto validation, and create or update a domain Entity only if the generic entity is valid.
Composer
composer require "eureka/component-validation"
Installation
You can install the component (for testing) with the following command:
Update
You can update the component (for testing) with the following command:
Testing & CI (Continuous Integration)
You can run tests on your side with following commands:
You also can run code style check or code style fixes with following commands:
To perform a static analyze of your code (with phpstan, lvl 9 at default), you can use the following command:
To ensure you code still compatible with current supported version and futures versions of php, you need to run the following commands (both are required for full support):
And the last "helper" commands, you can run before commit and push is:
This command clean the previous reports, install component if needed and run tests (with coverage report), check the code style and check the php compatibility check, as it would be done in our CI.
Contributing
See the CONTRIBUTING file.
License
This project is currently under The MIT License (MIT). See LICENCE file for more information.
All versions of component-validation with dependencies
ext-filter Version *
ext-mbstring Version *