{"id":18406320,"url":"https://github.com/programmatordev/yet-another-php-validator","last_synced_at":"2025-04-07T08:32:21.938Z","repository":{"id":187608871,"uuid":"669134986","full_name":"programmatordev/yet-another-php-validator","owner":"programmatordev","description":"PHP validator with expressive error messages","archived":true,"fork":false,"pushed_at":"2025-03-13T17:39:12.000Z","size":399,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-03-22T15:22:57.011Z","etag":null,"topics":["php","php-validation","php-validator","php8","validation","validator"],"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/programmatordev.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":"2023-07-21T12:31:01.000Z","updated_at":"2025-03-13T17:39:50.000Z","dependencies_parsed_at":"2023-08-11T12:11:44.963Z","dependency_job_id":"cefed517-81f9-4df1-b752-aee5a6ed55f1","html_url":"https://github.com/programmatordev/yet-another-php-validator","commit_stats":{"total_commits":162,"total_committers":3,"mean_commits":54.0,"dds":"0.043209876543209846","last_synced_commit":"ddabc65cecce1788d36d8d0b11f246f6dc1d7c68"},"previous_names":["programmatordev/yet-another-php-validator"],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/programmatordev%2Fyet-another-php-validator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/programmatordev%2Fyet-another-php-validator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/programmatordev%2Fyet-another-php-validator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/programmatordev%2Fyet-another-php-validator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/programmatordev","download_url":"https://codeload.github.com/programmatordev/yet-another-php-validator/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247620393,"owners_count":20968202,"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":["php","php-validation","php-validator","php8","validation","validator"],"created_at":"2024-11-06T03:08:16.290Z","updated_at":"2025-04-07T08:32:21.932Z","avatar_url":"https://github.com/programmatordev.png","language":"PHP","readme":"# Yet Another PHP Validator\n\n[![Latest Version](https://img.shields.io/github/release/programmatordev/yet-another-php-validator.svg?style=flat-square)](https://github.com/programmatordev/yet-another-php-validator/releases)\n[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE)\n[![Tests](https://github.com/programmatordev/yet-another-php-validator/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/programmatordev/yet-another-php-validator/actions/workflows/ci.yml?query=branch%3Amain)\n\nPHP validator with expressive error messages.\n\n\u003e [!TIP]  \n\u003e This library has been archived in favor of the [Fluent Validator](https://github.com/programmatordev/fluent-validator) library.\n\u003e Check it out if you're interested in the same validation style.\n\n## Requirements\n\n- PHP 8.1 or higher.\n\n## Installation\n\nInstall the library via [Composer](https://getcomposer.org/):\n\n```bash\ncomposer require programmatordev/yet-another-php-validator\n```\n\n## Basic Usage\n\nSimple usage looks like:\n\n```php\nuse ProgrammatorDev\\Validator\\Validator;\n\n// do this:\n$validator = Validator::type('int')-\u003egreaterThanOrEqual(18);\n\n// and validate with these:\n$validator-\u003evalidate(16); // returns bool: false\n$validator-\u003eassert(16, 'age'); // throws exception: The age value should be greater than or equal to 18.\n```\n\n## Documentation\n\n- [Get Started](docs/01-get-started.md)\n- [How to Use](docs/02-usage.md)\n  - [Usage](docs/02-usage.md#usage)\n  - [Methods](docs/02-usage.md#methods)\n  - [Error Handling](docs/02-usage.md#error-handling)\n  - [Custom Error Messages](docs/02-usage.md#custom-error-messages)\n- [Rules](docs/03-rules.md)\n- [Custom Rules](docs/04-custom-rules.md)\n\n## Contributing\n\nAny form of contribution to improve this library (including requests) will be welcome and appreciated.\nMake sure to open a pull request or issue.\n\n## Acknowledgments\n\nThis library is inspired by [respect/validation](https://github.com/Respect/Validation) and [symfony/validator](https://github.com/symfony/validator).\n\n## License\n\nThis project is licensed under the MIT license.\nPlease see the [LICENSE](LICENSE) file distributed with this source code for further information regarding copyright and licensing.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprogrammatordev%2Fyet-another-php-validator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprogrammatordev%2Fyet-another-php-validator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprogrammatordev%2Fyet-another-php-validator/lists"}