{"id":13828134,"url":"https://github.com/laravel-validation-rules/phone","last_synced_at":"2026-03-09T11:10:13.485Z","repository":{"id":25027586,"uuid":"103009633","full_name":"laravel-validation-rules/phone","owner":"laravel-validation-rules","description":"Validate phone number format","archived":false,"fork":false,"pushed_at":"2025-11-23T10:56:14.000Z","size":35,"stargazers_count":69,"open_issues_count":1,"forks_count":11,"subscribers_count":5,"default_branch":"master","last_synced_at":"2026-01-22T22:56:14.643Z","etag":null,"topics":["laravel","phone","php","rules","validation"],"latest_commit_sha":null,"homepage":"https://laravel-validation-rules.github.io/","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/laravel-validation-rules.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"zenodo":null}},"created_at":"2017-09-10T06:46:25.000Z","updated_at":"2025-11-23T10:55:50.000Z","dependencies_parsed_at":"2024-04-16T13:43:04.138Z","dependency_job_id":"6eee335a-4808-426b-a6b2-17d7a578467f","html_url":"https://github.com/laravel-validation-rules/phone","commit_stats":{"total_commits":21,"total_committers":4,"mean_commits":5.25,"dds":"0.38095238095238093","last_synced_commit":"1a70456ea32c54eb881aa24ab3956a6a3d3e2554"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/laravel-validation-rules/phone","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laravel-validation-rules%2Fphone","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laravel-validation-rules%2Fphone/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laravel-validation-rules%2Fphone/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laravel-validation-rules%2Fphone/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/laravel-validation-rules","download_url":"https://codeload.github.com/laravel-validation-rules/phone/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laravel-validation-rules%2Fphone/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30291906,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T02:57:19.223Z","status":"ssl_error","status_checked_at":"2026-03-09T02:56:26.373Z","response_time":61,"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":["laravel","phone","php","rules","validation"],"created_at":"2024-08-04T09:02:33.734Z","updated_at":"2026-03-09T11:10:13.464Z","avatar_url":"https://github.com/laravel-validation-rules.png","language":"PHP","readme":"# Phone\n\nValidates phone number format.\n\n\u003cp \u003e\n  \u003ca href=\"https://travis-ci.org/laravel-validation-rules/phone\"\u003e\n    \u003cimg src=\"https://img.shields.io/travis/laravel-validation-rules/phone.svg?style=flat-square\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://scrutinizer-ci.com/g/laravel-validation-rules/phone/code-structure/master/code-coverage\"\u003e\n    \u003cimg src=\"https://img.shields.io/scrutinizer/coverage/g/laravel-validation-rules/phone.svg?style=flat-square\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://scrutinizer-ci.com/g/laravel-validation-rules/phone\"\u003e\n    \u003cimg src=\"https://img.shields.io/scrutinizer/g/laravel-validation-rules/phone.svg?style=flat-square\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/laravel-validation-rules/phone/blob/master/LICENSE\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/license/laravel-validation-rules/phone.svg?style=flat-square\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://twitter.com/tylercd100\"\u003e\n    \u003cimg src=\"http://img.shields.io/badge/author-@tylercd100-blue.svg?style=flat-square\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n## Installation\n\n```bash\ncomposer require laravel-validation-rules/phone\n```\n\n## Usage\n\n```php\nuse LVR\\Phone\\Phone;\nuse LVR\\Phone\\E123;\nuse LVR\\Phone\\E164;\nuse LVR\\Phone\\NANP;\nuse LVR\\Phone\\Digits;\n\n// Test any phone number\n$request-\u003evalidate(['test' =\u003e '15556667777'], ['test' =\u003e new Phone]); // Pass!\n$request-\u003evalidate(['test' =\u003e '+15556667777'], ['test' =\u003e new Phone]); // Pass!\n$request-\u003evalidate(['test' =\u003e '+1 (555) 666-7777'], ['test' =\u003e new Phone]); // Pass!\n\n// Test for E123\n$request-\u003evalidate(['test' =\u003e '+22 555 666 7777'], ['test' =\u003e new E123]); // Pass!\n\n// Test for E164\n$request-\u003evalidate(['test' =\u003e '+15556667777'], ['test' =\u003e new E164]); // Pass!\n\n// Test for NANP (North American Numbering Plan)\n$request-\u003evalidate(['test' =\u003e '+1 (555) 666-7777'], ['test' =\u003e new NANP); // Pass!\n\n// Test for digits only\n$request-\u003evalidate(['test' =\u003e '15556667777'], ['test' =\u003e new Digits]); // Pass!\n```\n","funding_links":[],"categories":["PHP"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaravel-validation-rules%2Fphone","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flaravel-validation-rules%2Fphone","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaravel-validation-rules%2Fphone/lists"}