{"id":41689655,"url":"https://github.com/antalaron/regex-validator","last_synced_at":"2026-01-24T20:13:01.392Z","repository":{"id":56948676,"uuid":"112741083","full_name":"antalaron/regex-validator","owner":"antalaron","description":"PHP library to validate regular expressions","archived":false,"fork":false,"pushed_at":"2022-02-03T13:01:51.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-11T14:20:03.980Z","etag":null,"topics":["library","php","regex-validator","regular-expression","symfony-validator","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/antalaron.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":"2017-12-01T13:08:16.000Z","updated_at":"2022-02-03T13:00:55.000Z","dependencies_parsed_at":"2022-08-21T07:20:50.054Z","dependency_job_id":null,"html_url":"https://github.com/antalaron/regex-validator","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/antalaron/regex-validator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antalaron%2Fregex-validator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antalaron%2Fregex-validator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antalaron%2Fregex-validator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antalaron%2Fregex-validator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/antalaron","download_url":"https://codeload.github.com/antalaron/regex-validator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antalaron%2Fregex-validator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28736500,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-24T19:23:36.361Z","status":"ssl_error","status_checked_at":"2026-01-24T19:23:28.966Z","response_time":89,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["library","php","regex-validator","regular-expression","symfony-validator","validation"],"created_at":"2026-01-24T20:13:00.590Z","updated_at":"2026-01-24T20:13:01.386Z","avatar_url":"https://github.com/antalaron.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Regular expression validator\n============================\n\n[![Build Status](https://travis-ci.org/antalaron/regex-validator.svg?branch=master)](https://travis-ci.org/antalaron/regex-validator) [![Coverage Status](https://coveralls.io/repos/github/antalaron/regex-validator/badge.svg)](https://coveralls.io/github/antalaron/regex-validator?branch=master) [![Latest Stable Version](https://poser.pugx.org/antalaron/regex-validator/v/stable)](https://packagist.org/packages/antalaron/regex-validator) [![Latest Unstable Version](https://poser.pugx.org/antalaron/regex-validator/v/unstable)](https://packagist.org/packages/antalaron/regex-validator) [![License](https://poser.pugx.org/antalaron/regex-validator/license)](https://packagist.org/packages/antalaron/regex-validator)\n\nPHP library to validate regular expressions.\n\nInstallation\n------------\n\nOpen a command console, enter your project directory and execute the\nfollowing command to download the latest stable version of this library:\n\n```bash\n$ composer require antalaron/regex-validator\n```\n\nThis command requires you to have Composer installed globally, as explained\nin the [installation chapter](https://getcomposer.org/doc/00-intro.md)\nof the Composer documentation.\n\nBasic usage\n-----------\n\nTo validate a regular expression:\n\n```php\nuse Antalaron\\RegexValidator\\Regex;\nuse Symfony\\Component\\Validator\\Validation;\n\n$validator = Validation::createValidator();\n$violations = $validator-\u003evalidate('/foo/', new Regex());\n\nif (0 !== count($violations)) {\n    foreach ($violations as $violation) {\n        echo $violation-\u003egetMessage().'\u003cbr\u003e';\n    }\n}\n```\n\nLicense\n-------\n\nThis library is under [MIT License](http://opensource.org/licenses/mit-license.php).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantalaron%2Fregex-validator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fantalaron%2Fregex-validator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantalaron%2Fregex-validator/lists"}