{"id":15725212,"url":"https://github.com/joylei/php-validation","last_synced_at":"2025-03-31T01:24:22.351Z","repository":{"id":136357888,"uuid":"89222921","full_name":"Joylei/php-validation","owner":"Joylei","description":"Another fluent validation library for php","archived":false,"fork":false,"pushed_at":"2017-04-24T10:02:38.000Z","size":12,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-06T06:44:22.269Z","etag":null,"topics":["fluentvalidation","php-library","validation"],"latest_commit_sha":null,"homepage":null,"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/Joylei.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-04-24T09:37:16.000Z","updated_at":"2020-01-16T17:33:48.000Z","dependencies_parsed_at":"2023-03-13T11:03:33.043Z","dependency_job_id":null,"html_url":"https://github.com/Joylei/php-validation","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Joylei%2Fphp-validation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Joylei%2Fphp-validation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Joylei%2Fphp-validation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Joylei%2Fphp-validation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Joylei","download_url":"https://codeload.github.com/Joylei/php-validation/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246401169,"owners_count":20771131,"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":["fluentvalidation","php-library","validation"],"created_at":"2024-10-03T22:20:04.299Z","updated_at":"2025-03-31T01:24:22.323Z","avatar_url":"https://github.com/Joylei.png","language":"PHP","readme":"# PHP-Validation\n\nAnother fluent validation library for php\n\n## Usage\n\n```php\n$validator = new Validator();\n$validator-\u003eruleFor('field1',function(){\n    $this-\u003eisRequired('required');\n    $this-\u003eisNumber('is number');\n})-\u003eend()-\u003eruleFor('field2', function(){\n    $this-\u003ehasRange(5, 10, 'range(5,10)');\n});\n\n$result = $validator-\u003evalidate([\n    'field1' =\u003e 'aaa',\n    'field2' =\u003e '20'\n]);\n\necho $result-\u003ehasError();\necho $result-\u003egetError();\n```\n\nFor more information, please see tests in the source code.\n\n## License\n\nMIT\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoylei%2Fphp-validation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoylei%2Fphp-validation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoylei%2Fphp-validation/lists"}