{"id":15984905,"url":"https://github.com/divineomega/omega-validator","last_synced_at":"2025-06-25T15:06:17.189Z","repository":{"id":56969668,"uuid":"175517458","full_name":"DivineOmega/omega-validator","owner":"DivineOmega","description":"Easy to use, framework independent data validator","archived":false,"fork":false,"pushed_at":"2020-01-27T10:01:20.000Z","size":24,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-25T15:06:01.491Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DivineOmega.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":"2019-03-14T00:04:03.000Z","updated_at":"2020-01-27T09:59:37.000Z","dependencies_parsed_at":"2022-08-21T10:50:40.164Z","dependency_job_id":null,"html_url":"https://github.com/DivineOmega/omega-validator","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/DivineOmega/omega-validator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DivineOmega%2Fomega-validator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DivineOmega%2Fomega-validator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DivineOmega%2Fomega-validator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DivineOmega%2Fomega-validator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DivineOmega","download_url":"https://codeload.github.com/DivineOmega/omega-validator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DivineOmega%2Fomega-validator/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261896998,"owners_count":23226647,"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":[],"created_at":"2024-10-08T02:11:12.973Z","updated_at":"2025-06-25T15:06:17.168Z","avatar_url":"https://github.com/DivineOmega.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Omega Validator\n\n## Installation\n\nTo install Omega Validator, just run the following Composer command.\n\n```bash\ncomposer require divineomega/omega-validator\n```\n\n## Usage\n\nSee the following example usage.\n\n```php\nuse DivineOmega\\OmegaValidator\\Rules\\IsEmail;\nuse DivineOmega\\OmegaValidator\\Rules\\IsString;\nuse DivineOmega\\OmegaValidator\\Rules\\Required;\nuse DivineOmega\\OmegaValidator\\Translator;\nuse DivineOmega\\OmegaValidator\\Validator;\n\n/* ... */\n\n$validator = new Validator([\n    'email' =\u003e '',\n], [\n    'email' =\u003e [\n        new Required(),\n        new IsEmail(),\n        new IsString(),\n    ],\n]);\n\nif ($validator-\u003efails()) {\n\n    // English messages\n    var_dump($validator-\u003emessages());\n    \n    // array(1) {\n    //  [\"email\"]=\u003e\n    //  array(2) {\n    //    [\"DivineOmega\\OmegaValidator\\Rules\\Required\"]=\u003e\n    //    string(22) \"The email is required.\"\n    //    [\"DivineOmega\\OmegaValidator\\Rules\\IsEmail\"]=\u003e\n    //    string(40) \"The email must be a valid email address.\"\n    //  }\n    // }\n\n    // German messages\n    var_dump($validator-\u003emessages(new Translator('de')));\n\n    // Polish messages\n    var_dump($validator-\u003emessages(new Translator('pl')));\n\n    // etc...\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdivineomega%2Fomega-validator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdivineomega%2Fomega-validator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdivineomega%2Fomega-validator/lists"}