{"id":36979241,"url":"https://github.com/mkakpabla/form-validation-php","last_synced_at":"2026-01-13T22:48:51.169Z","repository":{"id":57018057,"uuid":"208422640","full_name":"mkakpabla/form-validation-php","owner":"mkakpabla","description":"A simple validator in php","archived":false,"fork":false,"pushed_at":"2019-12-20T17:30:23.000Z","size":53,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2023-03-25T19:54:39.441Z","etag":null,"topics":["php","validation","validation-errors","validation-library","validation-messages","validation-rules"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mkakpabla.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-09-14T10:11:28.000Z","updated_at":"2021-03-20T10:43:11.000Z","dependencies_parsed_at":"2022-08-22T11:10:07.951Z","dependency_job_id":null,"html_url":"https://github.com/mkakpabla/form-validation-php","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"purl":"pkg:github/mkakpabla/form-validation-php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkakpabla%2Fform-validation-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkakpabla%2Fform-validation-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkakpabla%2Fform-validation-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkakpabla%2Fform-validation-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mkakpabla","download_url":"https://codeload.github.com/mkakpabla/form-validation-php/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkakpabla%2Fform-validation-php/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28403750,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T21:51:37.118Z","status":"ssl_error","status_checked_at":"2026-01-13T21:45:14.585Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["php","validation","validation-errors","validation-library","validation-messages","validation-rules"],"created_at":"2026-01-13T22:48:51.077Z","updated_at":"2026-01-13T22:48:51.160Z","avatar_url":"https://github.com/mkakpabla.png","language":"PHP","readme":"[![Build Status](https://travis-ci.org/mkakpabla/form-validation-php.svg?branch=master)](https://travis-ci.org/mkakpabla/form-validation-php)\n# Zen Validation - PHP Validation Library\n\n## Features\n\n* API like Laravel validation.\n* Array validation.\n* Custom validation messages.\n\n## Requirements\n\n* PHP 7.2 or higher\n* Composer for installation\n\n## Quick Start\n\n#### Installation\n\n```bash\ncomposer require \"mkakpabla/validation\"\n```\n\n#### Usage\n\nExamples :\n\n```php\n\u003c?php\n\nrequire 'vendor/autoload.php';\n\nuse Zen\\Validation\\Validator;\n\n$validator = new Validator([], [\n  'title' =\u003e 'required|notEmpty',\n  'slug' =\u003e 'required|slug',\n  'content' =\u003e 'required|text'\n  ]);\n\n$validator-\u003evalidate();\n\nif(!$validator-\u003eisValid()) {\n  var_dump($validator-\u003eerrors());\n} else {\n  \n  // Formulaire valide\n  // Traitements\n}\n```\n \n#### Custom Messages for Validator\n```php\n\u003c?php\n\nrequire 'vendor/autoload.php';\n\nuse Zen\\Validation\\Validator;\n$validator = new Validator($data, [\n  'title'  =\u003e 'required',\n  ]);\n$validator-\u003eaddErrorsMessages([\n  'title.required' =\u003e \"le titre est obligatoire\"\n]);\n$validator-\u003evalidate();\n````\n\n## Validation Rules\n\n * `required` - Field is required\n * `email` - Field must be email\n * `notEmpty` - Field did not be empty\n * `alpha` - Content of field must be alphabetic\n * `alphaNum` - Content of field must be alphanumeric\n * `integer` - Must be integer number\n * `text` - Field must be a text\n * `datetime` - Field must be a datetime\n * `time` - Field must be a time\n * `date` - Field must be a date\n * `slug` - Field must be a slug\n * `confirm` - Field must be a same as another field\n * `min:number` - The field under this rule must have a size biger or equal than the given number\n * `max:number` - The field under this rule must have a size lower or equal than the given number\n * `between:min,max` - The field under this rule must have a size between min and max params \n \n\n\n\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmkakpabla%2Fform-validation-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmkakpabla%2Fform-validation-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmkakpabla%2Fform-validation-php/lists"}