slvler - Phone Validation
Phone Validation API for app.abstractapi.com
Abstract'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.
It'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.
Validating 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.
To install this package tou can use composer:
composer require slvler/phone-validation
First, you should extract the config/phone.php file to the config folder.
php artisan vendor:publish --tag=phone
API key to be obtained from app.abstractapi.com address should be declared. This is your private API key, specific to this API.
'phone' => [
'base_url' => 'https://phonevalidation.abstractapi.com/',
'api_key' => 'XXXXXXXXXXXXXXXXXXXXXXXX'
Abstract's Phone Number Validation and Verification API simply requires your unique API key and the phone number you'd like to check:
This was a successful request, so the valid phone number and details associated with it are returned below:
"local": "(415) 200-7986"
"name": "United States",
"carrier": "T-Mobile USA, Inc."
The MIT License (MIT). Please see License File for more information.