KennedyTedesco / Validation
Licence: mit
The power of Respect Validation on Laravel
Stars: ✭ 188
Projects that are alternatives of or similar to Validation
Validation Composite
Allows uniting of several validation rules into single one for easy re-usage
Stars: ✭ 159 (-15.43%)
Mutual labels: validation, validator, laravel
Validation
🔒 Laravel farsi/persian validation
Stars: ✭ 142 (-24.47%)
Mutual labels: validation, validator, laravel
Credit Card
Credit Card Validation
Stars: ✭ 150 (-20.21%)
Mutual labels: validation, validator, laravel
Laravel Zip Validator
Laravel ZIP file content validator
Stars: ✭ 120 (-36.17%)
Mutual labels: validation, validator, laravel
Laravel Phone
Phone number functionality for Laravel
Stars: ✭ 1,806 (+860.64%)
Mutual labels: validation, laravel
Awesome Python Models
A curated list of awesome Python libraries, which implement models, schemas, serializers/deserializers, ODM's/ORM's, Active Records or similar patterns.
Stars: ✭ 124 (-34.04%)
Mutual labels: validation, validator
Aura.filter
Validate and sanitize arrays and objects.
Stars: ✭ 134 (-28.72%)
Mutual labels: validation, validator
Ngx Dynamic Form Builder
FormBuilder + class-transformer + class-validator = dynamic form group builder for Angular10+
Stars: ✭ 93 (-50.53%)
Mutual labels: validation, validator
Class Transformer Validator
A simple plugin for class-transformer and class-validator which combines them in a nice and programmer-friendly API.
Stars: ✭ 151 (-19.68%)
Mutual labels: validation, validator
Property Validator
✅ Easy property validation for JavaScript, Node and Express.
Stars: ✭ 153 (-18.62%)
Mutual labels: validation, validator
Ozzo Validation
An idiomatic Go (golang) validation package. Supports configurable and extensible validation rules (validators) using normal language constructs instead of error-prone struct tags.
Stars: ✭ 2,471 (+1214.36%)
Mutual labels: validation, validator
Validator
A tool to validate text inside TextInputLayout
Stars: ✭ 117 (-37.77%)
Mutual labels: validation, validator
Apvalidators
Codeless solution for form validation in iOS!
Stars: ✭ 130 (-30.85%)
Mutual labels: validation, validator
Validatorjs
A data validation library in JavaScript for the browser and Node.js, inspired by Laravel's Validator.
Stars: ✭ 1,534 (+715.96%)
Mutual labels: validation, laravel
Validator
The Validator component provides tools to validate values following the JSR-303 Bean Validation specification.
Stars: ✭ 2,238 (+1090.43%)
Mutual labels: validation, validator
Form Object
Form object to use with Vue components for sending data to a Laravel application using axios.
Stars: ✭ 73 (-61.17%)
Mutual labels: validation, laravel
Laravel Multistep Forms
Responsable Multistep Form Builder for Laravel
Stars: ✭ 76 (-59.57%)
Mutual labels: validation, laravel
Formhelper
ASP.NET Core - Transform server-side validations to client-side without writing any javascript code. (Compatible with Fluent Validation)
Stars: ✭ 155 (-17.55%)
Mutual labels: validation, validator
Joiful
TypeScript Declarative Validation for Joi
Stars: ✭ 177 (-5.85%)
Mutual labels: validation, validator
kennedytedesco/validation
The power of Respect Validation on Laravel.
Version Compatibility
Laravel | kennedytedesco/validation |
---|---|
8.x | composer require kennedytedesco/validation:^8.0 |
7.x | composer require kennedytedesco/validation:^7.0 |
6.x | composer require kennedytedesco/validation:^6.0 |
5.8.x | composer require kennedytedesco/validation:^5.0 |
5.7.x | composer require kennedytedesco/validation:^5.0 |
5.6.x | composer require kennedytedesco/validation:^5.0 |
5.5.x | composer require kennedytedesco/validation:^5.0 |
Installation
composer require kennedytedesco/validation:^8.0
Supported rules (with examples)
$rules = [
'cpf' => ['cpf',],
'cnpj' => ['cnpj',],
'cnh' => ['cnh',],
'minimumAge' => ['minimumAge:20',],
'callback' => ['callback:is_int',],
'charset' => ['charset:ASCII',],
'consonant' => ['consonant',],
'vowel' => ['vowel',],
'alnum' => ['alnum:-',],
'digit' => ['digit',],
'alpha' => ['alpha',],
'containsArray' => ['contains:banana',],
'contains' => ['contains:banana',],
'countryCode' => ['countryCode',],
'creditCard' => ['digit', 'creditCard',],
'domain' => ['domain',],
'directory' => ['directory',],
'fileExists' => ['fileExists',],
'isFile' => ['file',],
'endsWith' => ['endsWith:banana',],
'equals' => ['equals:banana',],
'even' => ['even',],
'floatVal' => ['floatVal',],
'float' => ['floatVal',],
'graph' => ['graph',],
'instance' => ['instance:DateTime',],
'int' => ['int',],
'json' => ['json',],
'leapDate' => ['leapDate:Y-m-d',],
'leapYear' => ['leapYear',],
'arrayVal' => ['arrayVal',],
'Arr' => ['arrayVal',],
'lowercase' => ['lowercase',],
'macAddress' => ['macAddress',],
'multiple' => ['multiple:3',],
'negative' => ['negative',],
'noWhitespace' => ['noWhitespace',],
'nullValue' => ['nullValue',],
'numeric' => ['numeric',],
'objectType' => ['objectType',],
'odd' => ['odd',],
'perfectSquare' => ['perfectSquare',],
'positive' => ['positive',],
'primeNumber' => ['primeNumber',],
'punct' => ['punct',],
'readable' => ['readable',],
'regex' => ['regex:/5/',],
'roman' => ['roman',],
'slug' => ['slug',],
'space' => ['space:b',],
'tld' => ['tld',],
'uppercase' => ['uppercase',],
'version' => ['version',],
'xdigit' => ['xdigit',],
'writable' => ['writable',],
'alwaysValid' => ['alwaysValid',],
'boolType' => ['boolType',],
'youtube' => ['videoUrl:youtube',],
'vimeo' => ['videoUrl:vimeo',],
'video1' => ['videoUrl',],
'video2' => ['videoUrl',],
];
$data = [
'cpf' => '22205417118',
'cnpj' => '68518321000116',
'cnh' => '02650306461',
'callback' => 20,
'charset' => 'acucar',
'consonant' => 'dcfg',
'vowel' => 'aeiou',
'alnum' => 'banana-123 ',
'digit' => '120129 21212',
'alpha' => 'banana',
'containsArray' => ['www', 'banana', 'jfk', 'http',],
'contains' => 'www banana jfk http',
'countryCode' => 'BR',
'creditCard' => '5555666677778884',
'domain' => 'google.com.br',
'directory' => __DIR__,
'fileExists' => __FILE__,
'file' => __FILE__,
'endsWith' => 'pera banana',
'equals' => 'banana',
'even' => 8,
'floatVal' => 9.8,
'graph' => ',
'instance' => new \Datetime(),
'int' => 9,
'json' => '{"file":"laravel.php"}',
'leapDate' => '1988-02-29',
'leapYear' => '1988',
'arrayVal' => ['Brazil',],
'lowercase' => 'brazil',
'macAddress' => '00:11:22:33:44:55',
'multiple' => '9',
'negative' => '-10',
'noWhitespace' => 'laravelBrazil',
'nullValue' => null,
'numeric' => '179.9',
'objectType' => new \stdClass(),
'odd' => 3,
'perfectSquare' => 25,
'positive' => 1,
'primeNumber' => 7,
'punct' => '&,.;[]',
'readable' => __FILE__,
'regex' => '5',
'roman' => 'VI',
'slug' => 'laravel-brazil',
'space' => ' b ',
'tld' => 'com',
'uppercase' => 'BRAZIL',
'version' => '1.0.0',
'xdigit' => 'abc123',
'writable' => __FILE__,
'alwaysValid' => '@#$_',
'boolType' => \is_int(2),
'youtube' => 'http://youtu.be/l2gLWaGatFA',
'vimeo' => 'http://vimeo.com/33677985',
'video1' => 'https://youtu.be/l2gLWaGatFA',
'video2' => 'https://vimeo.com/33677985',
];
$validator = \Validator::make($data, $rules);
if ($validator->passes()) {
// Do something
}
For more validation rules
See all available rules here:
https://respect-validation.readthedocs.io/en/1.1/list-of-rules/
Repository of Respect Validation:
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].