{"id":19094968,"url":"https://github.com/phauthentic/validator","last_synced_at":"2025-06-17T16:34:51.036Z","repository":{"id":167391815,"uuid":"595390270","full_name":"Phauthentic/validator","owner":"Phauthentic","description":"A SOLID validation library, flexible and extendible.","archived":false,"fork":false,"pushed_at":"2023-07-07T07:39:33.000Z","size":116,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-30T09:58:04.329Z","etag":null,"topics":["dependency-free","php8","phpstan-l8","solid","solid-principles","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/Phauthentic.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-01-31T01:15:13.000Z","updated_at":"2023-05-19T20:54:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"d015acf6-c129-4c2b-83a9-7c3975bf14fb","html_url":"https://github.com/Phauthentic/validator","commit_stats":null,"previous_names":["phauthentic/validator"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Phauthentic/validator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Phauthentic%2Fvalidator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Phauthentic%2Fvalidator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Phauthentic%2Fvalidator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Phauthentic%2Fvalidator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Phauthentic","download_url":"https://codeload.github.com/Phauthentic/validator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Phauthentic%2Fvalidator/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260398933,"owners_count":23003085,"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":["dependency-free","php8","phpstan-l8","solid","solid-principles","validation","validator"],"created_at":"2024-11-09T03:32:17.181Z","updated_at":"2025-06-17T16:34:46.017Z","avatar_url":"https://github.com/Phauthentic.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Phauthentic Validator\n\n![PHP \u003e= 8.0](https://img.shields.io/static/v1?label=PHP\u0026message=8.*\u0026color=787CB5\u0026style=for-the-badge\u0026logo=php)\n![phpstan Level 8](https://img.shields.io/static/v1?label=phpstan\u0026message=Level%208\u0026color=%3CCOLOR%3E\u0026style=for-the-badge)\n![License: MIT](https://img.shields.io/static/v1?label=License\u0026message=MIT\u0026color=%3CCOLOR%3E\u0026style=for-the-badge)\n\nA [SOLID][1] validation library that also tries to do [KISS][2].\n\n* Designed with maximum flexibility for customization in mind.\n* Tries to be as easy to use and set up as possible.\n* Doesn't include message translations intentionally - single responsibility principle - but provides the flexibility to hook your own system in.\n* Provides a way to customize the error result.\n* It is **not** exception driven as some other libs.\n* **No** further dependencies.\n* Framework-agnostic\n\n## Example\n\nThis is a **very** simple **example**. Please read the documentation.\n\n```php\n$fieldBuilder = FieldBuilder::create(new FieldCollection());\n$fieldBuilder-\u003eadd('project.id', NotEmpty::NAME);\n$fieldBuilder-\u003eadd('project.name', Between::NAME, [3,10]);\n$fieldBuilder-\u003eadd('project.tasks.*.title', NotEmpty::NAME);\n$fieldCollection = $fieldBuilder-\u003egetFieldCollection();\n\n$validator = new Validator(\n    $fieldCollection,\n    (new ValidatorFactory())-\u003ecreateRuleCollection(),\n    new ErrorCollection(),\n    new GlossaryMessageFormatter()\n);\n\nif (!$result-\u003eisValid()) {\n    var_dump($result-\u003egetErrors()-\u003etoArray());\n}\n```\n\n## Documentation\n\n * [Quick Start](docs/Quick-Start.md)\n * [Architecture of the Library](docs/Architecture.md)\n\n## License\n\n[The MIT License (MIT)](LICENSE)\n\n- Copyright (c) 2016-2019 Muhammad Syifa\n- Copyright (c) 2021 Dave Redfern\n- Copyright (c) 2022 Florian Krämer\n\n[1]: https://en.wikipedia.org/wiki/SOLID\n[2]: https://en.wikipedia.org/wiki/KISS_principle\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphauthentic%2Fvalidator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphauthentic%2Fvalidator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphauthentic%2Fvalidator/lists"}