{"id":22640697,"url":"https://github.com/beastbytes/phone-number-validator","last_synced_at":"2026-02-15T23:04:51.634Z","repository":{"id":65691613,"uuid":"594421219","full_name":"beastbytes/phone-number-validator","owner":"beastbytes","description":"Yii3 Validator for National and International phone numbers","archived":false,"fork":false,"pushed_at":"2025-03-18T12:12:27.000Z","size":31,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-09T05:43:54.342Z","etag":null,"topics":["epp","itu-e123","itu-e164","itu-t0202","phone-number","validator","yii3"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/beastbytes.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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,"zenodo":null}},"created_at":"2023-01-28T14:02:45.000Z","updated_at":"2025-03-18T12:12:31.000Z","dependencies_parsed_at":"2025-03-19T01:01:14.122Z","dependency_job_id":null,"html_url":"https://github.com/beastbytes/phone-number-validator","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/beastbytes/phone-number-validator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beastbytes%2Fphone-number-validator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beastbytes%2Fphone-number-validator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beastbytes%2Fphone-number-validator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beastbytes%2Fphone-number-validator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/beastbytes","download_url":"https://codeload.github.com/beastbytes/phone-number-validator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beastbytes%2Fphone-number-validator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29491998,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-15T19:29:10.908Z","status":"ssl_error","status_checked_at":"2026-02-15T19:29:10.419Z","response_time":118,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["epp","itu-e123","itu-e164","itu-t0202","phone-number","validator","yii3"],"created_at":"2024-12-09T04:13:23.441Z","updated_at":"2026-02-15T23:04:51.598Z","avatar_url":"https://github.com/beastbytes.png","language":"PHP","readme":"# Phone Number Validator (phone-number-validator)\nProvides validation for national and international phone numbers.\n\n**NOTE:** phone-number-validator does _**not**_ guarantee that a phone number exists, just that it is in a valid format.\n\n## International Phone Numbers\nInternational phone numbers are validated against the [Extensible Provisioning Protocol (EPP)](https://www.rfc-editor.org/rfc/rfc4933.html#section-2.5) and/or [ITU-T Recommendation E.123 (“Notation for national and i11l telephone numbers, e-mail addresses and Web addresses”)](https://www.itu.int/rec/T-REC-E.123) and [ITU-T Recommendation E.164 (“The international public telecommunication numbering plan”)](https://www.itu.int/rec/T-REC-E.164) formats.\n\n**Note:** EPP formatted phone numbers are valid ITU phone numbers. \n\n## National Phone Numbers\nTo validate national phone numbers a N6lPhoneNumberDataInterface implementation is required, e.g.\nbeastbytes/n6l-phone-number-data-php which provides all numbering plans in the\n[ITU T0202 National Numbering Plans](https://www.itu.int/oth/T0202.aspx?parent=T0202)\n\nNational phone numbers are validated against country specific formats; they can be validated against a single country, a subset of, or all countries provided by the N6lPhoneNumberDataInterface implementation.\n\n## License\nFor license information see the [LICENSE](LICENSE.md) file.\n\n## Installation\nThe preferred way to install this extension is through [composer](http://getcomposer.org/download/).\n\nEither run\n\n```\nphp composer.phar require --prefer-dist beastbytes/phone-number-validator\n```\n\nor add\n\n```json\n\"beastbytes/phone-number-validator\": \"^1.0.0\"\n```\n\nto the 'require' section of your composer.json.\n\n\n## Unit testing\n\nThe package is tested with [PHPUnit](https://phpunit.de/). To run tests:\n\n```shell\n./vendor/bin/phpunit\n```\n\n## Mutation testing\n\nThe package tests are checked with [Infection](https://infection.github.io/) mutation framework with\n[Infection Static Analysis Plugin](https://github.com/Roave/infection-static-analysis-plugin). To run it:\n\n```shell\n./vendor/bin/roave-infection-static-analysis-plugin\n```\n\n## Static analysis\n\nThe code is statically analyzed with [Psalm](https://psalm.dev/). To run static analysis:\n\n```shell\n./vendor/bin/psalm\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeastbytes%2Fphone-number-validator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbeastbytes%2Fphone-number-validator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeastbytes%2Fphone-number-validator/lists"}