{"id":15046110,"url":"https://github.com/lablnet/php-validation","last_synced_at":"2026-02-09T02:02:17.473Z","repository":{"id":57010519,"uuid":"145276025","full_name":"lablnet/PHP-Validation","owner":"lablnet","description":"Performs Validation","archived":false,"fork":false,"pushed_at":"2018-08-19T08:10:33.000Z","size":7,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-03T11:37:23.625Z","etag":null,"topics":["class","composer","free","package","php","validation"],"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/lablnet.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-08-19T05:30:01.000Z","updated_at":"2024-07-26T11:32:56.000Z","dependencies_parsed_at":"2022-08-21T13:40:44.838Z","dependency_job_id":null,"html_url":"https://github.com/lablnet/PHP-Validation","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/lablnet/PHP-Validation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lablnet%2FPHP-Validation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lablnet%2FPHP-Validation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lablnet%2FPHP-Validation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lablnet%2FPHP-Validation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lablnet","download_url":"https://codeload.github.com/lablnet/PHP-Validation/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lablnet%2FPHP-Validation/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29254303,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-09T01:52:29.835Z","status":"online","status_checked_at":"2026-02-09T02:00:09.501Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["class","composer","free","package","php","validation"],"created_at":"2024-09-24T20:52:43.331Z","updated_at":"2026-02-09T02:02:17.456Z","avatar_url":"https://github.com/lablnet.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PHP validation\n\n## Requirement\n\n- PHP\n- Composer\n\n## install\nrun this command\n``` composer require lablnet/validation ```\n\n## usage\n\n```php\n\u003c?php \n    require __DIR__.'/vendor/autoload.php'; \n\n\t$rules = [\n\t\t'username' =\u003e ['required' =\u003e true, ],\n\t\t'email' =\u003e ['required' =\u003e true],\n\t\t'password' =\u003e ['required' =\u003e true, ],\n\t];\n\t$validation = new \\Lablnet\\Validation($_POST,$rules,'input');\n\tif($validation-\u003efail()){\n\t\t$errors = $validation-\u003eerror()-\u003eget();\n\n\t\tforeach ($errors as $error) {\n\t\t\tforeach ($error as $value) {\n\t\t\t\techo $value.\"\u003cbr\u003e\";\n\t\t\t}\n\t\t}\n\t} else {\n\t\t//TO-Do create the user\n    }\n```    \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flablnet%2Fphp-validation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flablnet%2Fphp-validation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flablnet%2Fphp-validation/lists"}