Download the PHP package awurth/slim-validation without Composer
On this page you can find all versions of the php package awurth/slim-validation. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download awurth/slim-validation
More information about awurth/slim-validation
Files in awurth/slim-validation
Package slim-validation
Short Description A wrapper around the respect/validation PHP validation library for easier error handling and display
License MIT
Homepage https://github.com/awurth/SlimValidation
Informations about the package slim-validation
Slim Validation
A wrapper around the Respect Validation PHP validation library for easier error handling and display
This project was originally designed to be used with the Micro-Framework "Slim", hence the name "Slim Validation", but can now be used in any other PHP project.
Installation
Documentation
- 5.x (current, PHP >= 8.1)
- Validating subjects
- Rule options
- Working with failures
- Twig integration
- Extending
- 3.4 (outdated, PHP >= 7.1)
Usage
The following example shows how to validate that a string is at least 10 characters long:
The validate() method returns a list of validation failures as an object that implements ValidationFailureCollectionInterface. If you have lots of validation failures, you can filter them with a callback:
License
This package is available under the MIT license.
All versions of slim-validation with dependencies
respect/validation Version ^2.0
symfony/options-resolver Version ^6.0 || ^7.0 || ^8.0
symfony/property-access Version ^6.0 || ^7.0 || ^8.0
