Download the PHP package yemenifree/laravel-validation without Composer
On this page you can find all versions of the php package yemenifree/laravel-validation. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download yemenifree/laravel-validation
More information about yemenifree/laravel-validation
Files in yemenifree/laravel-validation
Package laravel-validation
Short Description Use laravel validation standalone support translate.
License
Informations about the package laravel-validation
PHP Laravel Validation.
A tiny package to use laravel validation outside laravel with support translate error message. this package is extend for rakit/validation so read it's document for more information.
Features
- Init validation easy with trait.
- Support Multi lang for error messages.
- More come soon.
Requirements & Installation
Requires PHP 7.0+
Via Composer
Getting Started
To init validation on class add HasValidator
trait.
Then to valid some data you can pass array for data & rules and others options.
For example
If you have same response for all form in controller you can handler validation error once by create InValidCallback
in class.
You can use custom translate file for validation errors.
translate files must return array of messages. see
src/lang/ar.php
for example.
To access to all method of Validator
use getValidator()
method.
For more information about rules check rakit/validation
Change log
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Rakit/validation
- Salah Alkhwlani
- All Contributors
License
The MIT License (MIT). Please see License File for more information.