{"id":13534897,"url":"https://github.com/KennedyTedesco/Validation","last_synced_at":"2025-04-02T00:31:17.344Z","repository":{"id":10003250,"uuid":"12037804","full_name":"KennedyTedesco/Validation","owner":"KennedyTedesco","description":"The power of Respect Validation on Laravel","archived":true,"fork":false,"pushed_at":"2022-05-27T16:31:11.000Z","size":78,"stargazers_count":196,"open_issues_count":0,"forks_count":25,"subscribers_count":11,"default_branch":"master","last_synced_at":"2024-09-30T12:16:50.690Z","etag":null,"topics":["laravel","php","validation","validator","validators"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/KennedyTedesco.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-08-11T15:22:30.000Z","updated_at":"2024-05-12T22:11:01.000Z","dependencies_parsed_at":"2022-09-15T18:50:27.928Z","dependency_job_id":null,"html_url":"https://github.com/KennedyTedesco/Validation","commit_stats":null,"previous_names":[],"tags_count":23,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KennedyTedesco%2FValidation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KennedyTedesco%2FValidation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KennedyTedesco%2FValidation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KennedyTedesco%2FValidation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KennedyTedesco","download_url":"https://codeload.github.com/KennedyTedesco/Validation/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":222784453,"owners_count":17037192,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["laravel","php","validation","validator","validators"],"created_at":"2024-08-01T08:00:46.071Z","updated_at":"2024-11-02T22:31:12.520Z","avatar_url":"https://github.com/KennedyTedesco.png","language":"PHP","funding_links":[],"categories":["PHP"],"sub_categories":["Laravel"],"readme":"kennedytedesco/validation\n==========\n\nThe power of [Respect Validation](https://github.com/Respect/Validation) on Laravel.\n\n[![Build Status](https://travis-ci.org/KennedyTedesco/Validation.svg)](https://travis-ci.org/KennedyTedesco/Validation)\n[![Total Downloads](https://poser.pugx.org/KennedyTedesco/Validation/downloads.svg)](https://packagist.org/packages/KennedyTedesco/Validation)\n[![Latest Stable Version](https://poser.pugx.org/KennedyTedesco/Validation/v/stable.svg)](https://packagist.org/packages/KennedyTedesco/Validation)\n[![License](https://poser.pugx.org/orchestra/testbench/license)](https://packagist.org/packages/orchestra/testbench)\n\n## Version Compatibility\n\n Laravel  | kennedytedesco/validation\n:---------|:----------\n **9.x**  | `composer require kennedytedesco/validation:^9.0`\n 8.x  | `composer require kennedytedesco/validation:^8.0`\n 7.x  | `composer require kennedytedesco/validation:^7.0`\n 6.x  | `composer require kennedytedesco/validation:^6.0`\n 5.8.x    | `composer require kennedytedesco/validation:^5.0`\n 5.7.x    | `composer require kennedytedesco/validation:^5.0`\n 5.6.x    | `composer require kennedytedesco/validation:^5.0`\n 5.5.x    | `composer require kennedytedesco/validation:^5.0`\n\n## Installation\n\n```php\ncomposer require kennedytedesco/validation:^9.0\n```\n\n## Supported rules (with examples)\n\n```php\n$rules = [\n    'cpf'               =\u003e ['cpf',],\n    'cnpj'              =\u003e ['cnpj',],\n    'cnh'               =\u003e ['cnh',],\n    'minimumAge'        =\u003e ['minimumAge:20',],\n    'callback'          =\u003e ['callback:is_int',],\n    'charset'           =\u003e ['charset:ASCII',],\n    'consonant'         =\u003e ['consonant',],\n    'vowel'             =\u003e ['vowel',],\n    'alnum'             =\u003e ['alnum:-',],\n    'digit'             =\u003e ['digit',],\n    'alpha'             =\u003e ['alpha',],\n    'containsArray'     =\u003e ['contains:banana',],\n    'contains'          =\u003e ['contains:banana',],\n    'countryCode'       =\u003e ['countryCode',],\n    'creditCard'        =\u003e ['digit', 'creditCard',],\n    'domain'            =\u003e ['domain',],\n    'directory'         =\u003e ['directory',],\n    'fileExists'        =\u003e ['fileExists',],\n    'isFile'            =\u003e ['file',],\n    'endsWith'          =\u003e ['endsWith:banana',],\n    'equals'            =\u003e ['equals:banana',],\n    'even'              =\u003e ['even',],\n    'floatVal'          =\u003e ['floatVal',],\n    'float'             =\u003e ['floatVal',],\n    'graph'             =\u003e ['graph',],\n    'instance'          =\u003e ['instance:DateTime',],\n    'int'               =\u003e ['int',],\n    'json'              =\u003e ['json',],\n    'leapDate'          =\u003e ['leapDate:Y-m-d',],\n    'leapYear'          =\u003e ['leapYear',],\n    'arrayVal'          =\u003e ['arrayVal',],\n    'Arr'               =\u003e ['arrayVal',],\n    'lowercase'         =\u003e ['lowercase',],\n    'macAddress'        =\u003e ['macAddress',],\n    'multiple'          =\u003e ['multiple:3',],\n    'negative'          =\u003e ['negative',],\n    'noWhitespace'      =\u003e ['noWhitespace',],\n    'nullValue'         =\u003e ['nullValue',],\n    'numeric'           =\u003e ['numeric',],\n    'objectType'        =\u003e ['objectType',],\n    'odd'               =\u003e ['odd',],\n    'perfectSquare'     =\u003e ['perfectSquare',],\n    'positive'          =\u003e ['positive',],\n    'primeNumber'       =\u003e ['primeNumber',],\n    'punct'             =\u003e ['punct',],\n    'readable'          =\u003e ['readable',],\n    'regex'             =\u003e ['regex:/5/',],\n    'roman'             =\u003e ['roman',],\n    'slug'              =\u003e ['slug',],\n    'space'             =\u003e ['space:b',],\n    'tld'               =\u003e ['tld',],\n    'uppercase'         =\u003e ['uppercase',],\n    'version'           =\u003e ['version',],\n    'xdigit'            =\u003e ['xdigit',],\n    'writable'          =\u003e ['writable',],\n    'alwaysValid'       =\u003e ['alwaysValid',],\n    'boolType'          =\u003e ['boolType',],\n    'youtube'           =\u003e ['videoUrl:youtube',],\n    'vimeo'             =\u003e ['videoUrl:vimeo',],\n    'video1'            =\u003e ['videoUrl',],\n    'video2'            =\u003e ['videoUrl',],\n];\n\n$data = [\n    'cpf'               =\u003e '22205417118',\n    'cnpj'              =\u003e '68518321000116',\n    'cnh'               =\u003e '02650306461',\n    'callback'          =\u003e 20,\n    'charset'           =\u003e 'acucar',\n    'consonant'         =\u003e 'dcfg',\n    'vowel'             =\u003e 'aeiou',\n    'alnum'             =\u003e 'banana-123 ',\n    'digit'             =\u003e '120129  21212',\n    'alpha'             =\u003e 'banana',\n    'containsArray'     =\u003e ['www', 'banana', 'jfk', 'http',],\n    'contains'          =\u003e 'www banana jfk http',\n    'countryCode'       =\u003e 'BR',\n    'creditCard'        =\u003e '5555666677778884',\n    'domain'            =\u003e 'google.com.br',\n    'directory'         =\u003e __DIR__,\n    'fileExists'        =\u003e __FILE__,\n    'file'              =\u003e __FILE__,\n    'endsWith'          =\u003e 'pera banana',\n    'equals'            =\u003e 'banana',\n    'even'              =\u003e 8,\n    'floatVal'          =\u003e 9.8,\n    'graph'             =\u003e 'LKM@#$%4;',\n    'instance'          =\u003e new \\Datetime(),\n    'int'               =\u003e 9,\n    'json'              =\u003e '{\"file\":\"laravel.php\"}',\n    'leapDate'          =\u003e '1988-02-29',\n    'leapYear'          =\u003e '1988',\n    'arrayVal'          =\u003e ['Brazil',],\n    'lowercase'         =\u003e 'brazil',\n    'macAddress'        =\u003e '00:11:22:33:44:55',\n    'multiple'          =\u003e '9',\n    'negative'          =\u003e '-10',\n    'noWhitespace'      =\u003e 'laravelBrazil',\n    'nullValue'         =\u003e null,\n    'numeric'           =\u003e '179.9',\n    'objectType'        =\u003e new \\stdClass(),\n    'odd'               =\u003e 3,\n    'perfectSquare'     =\u003e 25,\n    'positive'          =\u003e 1,\n    'primeNumber'       =\u003e 7,\n    'punct'             =\u003e '\u0026,.;[]',\n    'readable'          =\u003e __FILE__,\n    'regex'             =\u003e '5',\n    'roman'             =\u003e 'VI',\n    'slug'              =\u003e 'laravel-brazil',\n    'space'             =\u003e '              b      ',\n    'tld'               =\u003e 'com',\n    'uppercase'         =\u003e 'BRAZIL',\n    'version'           =\u003e '1.0.0',\n    'xdigit'            =\u003e 'abc123',\n    'writable'          =\u003e __FILE__,\n    'alwaysValid'       =\u003e '@#$_',\n    'boolType'          =\u003e \\is_int(2),\n    'youtube'           =\u003e 'http://youtu.be/l2gLWaGatFA',\n    'vimeo'             =\u003e 'http://vimeo.com/33677985',\n    'video1'            =\u003e 'https://youtu.be/l2gLWaGatFA',\n    'video2'            =\u003e 'https://vimeo.com/33677985',\n];\n\n$validator = \\Validator::make($data, $rules);\n\nif ($validator-\u003epasses()) {\n    // Do something\n}\n```\n\n# For more validation rules\n\nSee all available rules here:\n\nhttps://respect-validation.readthedocs.io/en/1.1/list-of-rules/\n\nRepository of Respect Validation:\n\nhttps://github.com/Respect/Validation\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FKennedyTedesco%2FValidation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FKennedyTedesco%2FValidation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FKennedyTedesco%2FValidation/lists"}