Download the PHP package lmcmi/validators without Composer
On this page you can find all versions of the php package lmcmi/validators. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download lmcmi/validators
More information about lmcmi/validators
Files in lmcmi/validators
Package validators
Short Description a simple validator to be use in any project
License MIT
Informations about the package validators
Validator
Introduction
The Validator package is a versatile PHP validation library that allows you to perform robust data validation with ease. Whether you need to validate simple strings or complex nested structures, this package provides a flexible and intuitive solution.
Index
- Installation
- Quick Start
- Standard Validation
- Validation with Rules
- Customization
- Custom Handlers
- Custom Messages
- Contributing
- Conclusion
Installation
Install the Validator package using Composer:
Quick Start
Standard Validation
For straightforward validation, use the Validator
class directly:
Validation with Rules
For more complex scenarios, leverage rules with nested structures:
Customization
Tailor the Validator package to your needs by customizing handlers and messages.
Custom Handlers
Create custom validation handlers to tailor the validation process to your needs:
Set the namespace for all your custom handlers:
Custom Messages
Tailor validation error messages for a personalized touch:
Integrate your custom message class:
Contributing
Contribute to the improvement of the Validator package by submitting issues or pull requests on the https://github.com/lcmialichi/validators.
Conclusion
With the Validator package, you have a powerful tool at your disposal for ensuring data integrity and reliability in your PHP projects. Dive into the documentation, experiment with the provided examples, and enhance your validation capabilities with ease.