{"id":29197524,"url":"https://github.com/selviler/phone-validation","last_synced_at":"2025-07-02T07:09:48.908Z","repository":{"id":65515480,"uuid":"497133425","full_name":"selviler/phone-validation","owner":"selviler","description":"Phone Validation API for app.abstractapi.com","archived":false,"fork":false,"pushed_at":"2024-11-25T07:57:58.000Z","size":35,"stargazers_count":26,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-29T11:24:45.535Z","etag":null,"topics":["api-client","api-rest","laravel","laravel-api","laravel-deployment","laravel-package","phone","phone-number","phone-valication","phone-validation","phone-validator","rest-api","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/selviler.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","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":"2022-05-27T20:44:23.000Z","updated_at":"2024-12-12T20:11:31.000Z","dependencies_parsed_at":"2024-10-28T09:17:05.294Z","dependency_job_id":"335a0546-a092-49b9-ab95-a8cf4a3be2ee","html_url":"https://github.com/selviler/phone-validation","commit_stats":{"total_commits":8,"total_committers":3,"mean_commits":"2.6666666666666665","dds":0.5,"last_synced_commit":"2f036c4bfc2ff1fb2a61084f1cd9450348dc1b93"},"previous_names":["selviler/phone-validation"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/selviler/phone-validation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/selviler%2Fphone-validation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/selviler%2Fphone-validation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/selviler%2Fphone-validation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/selviler%2Fphone-validation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/selviler","download_url":"https://codeload.github.com/selviler/phone-validation/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/selviler%2Fphone-validation/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263091127,"owners_count":23412359,"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":["api-client","api-rest","laravel","laravel-api","laravel-deployment","laravel-package","phone","phone-number","phone-valication","phone-validation","phone-validator","rest-api","validation","validator"],"created_at":"2025-07-02T07:09:48.432Z","updated_at":"2025-07-02T07:09:48.892Z","avatar_url":"https://github.com/selviler.png","language":"PHP","readme":"# Phone Validation\n\n[![tests](https://github.com/slvler/phone-validation/actions/workflows/tests.yml/badge.svg)](https://github.com/slvler/phone-validation/actions/workflows/tests.yml)\n[![Latest Stable Version](https://img.shields.io/packagist/v/slvler/phone-validation.svg)](https://packagist.org/packages/slvler/phone-validation)\n[![License](https://poser.pugx.org/slvler/phone-validation/license)](https://packagist.org/packages/slvler/phone-validation)\n[![Total Downloads](https://poser.pugx.org/slvler/phone-validation/downloads)](https://packagist.org/packages/slvler/phone-validation)\n\nPhone Validation API for app.abstractapi.com\n\nAbstract's Phone Number Validation and Verification API is a fast, lightweight, modern, and RESTful JSON API for determining the validity and other details of phone numbers from over 190 countries.\n\nIt's very simple to use: you only need to submit your API key and a phone number, and the API will respond as assessment of its validity, as well as additional details like the carrier details, line type, region and city details, and more.\n\nValidating and verifying phone numbers is a critical step to reducing the chances of low quality data and fraudulent or risky users in your website or application.\n\n## Requirements\n- PHP 8.1\n- Laravel 9.x | 10.x | 11.x\n\n## Installation\nTo install this package tou can use composer:\n```bash\ncomposer require slvler/phone-validation\n```\n\n## Usage\n- First, you should extract the config/phone.php file to the config folder.\n```php\nphp artisan vendor:publish --tag=phone\n```\n- First of all we'll add the API key and API Url of the service we're using to our .env file of our project. If you don't have an account yet on app.abstractapi.com, you should create one. Once you have an account you can copy your API key from the dashboard page and put it into you .env file.\n```php\nABSTRACT_BASE_URL=https:https://phonevalidation.abstractapi.com\nABSTRACT_API_KEY=YOUR-API-KEY\n```\n- Abstract's Phone Number Validation and Verification API simply requires your unique API key and the phone number you'd like to check:\n```php\nuse Slvler\\PhoneValidation\\Phone;\n\nPhone::getData('14152007986');\n```\n- This was a successful request, so the valid phone number and details associated with it are returned below:\n```json\n{\n    \"phone\": \"14152007986\",\n    \"valid\": true,\n    \"format\": \n    {\n        \"international\": \"+14152007986\",\n        \"local\": \"(415) 200-7986\"\n    },\n    \"country\": \n    {\n        \"code\": \"US\",\n        \"name\": \"United States\",\n        \"prefix\": \"+1\"\n    },\n    \"location\": \"California\",\n    \"type\": \"mobile\",\n    \"carrier\": \"T-Mobile USA, Inc.\"\n}\n```\n\n## Testing\n```bash\ncomposer test\n```\n\n## Credits\n- [slvler](https://github.com/slvler)\n\n## License\nThe MIT License (MIT). Please see [License File](https://github.com/slvler/phone-validation/blob/main/LICENSE) for more information.\n\n## Contributing\nYou're very welcome to contribute.\nPlease see [CONTRIBUTING](https://github.com/slvler/phone-validation/blob/main/CONTRIBUTING.md) for details.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fselviler%2Fphone-validation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fselviler%2Fphone-validation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fselviler%2Fphone-validation/lists"}