PHPackages                             abstractapi/php-phone-validation - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. abstractapi/php-phone-validation

ActiveLibrary[API Development](/categories/api)

abstractapi/php-phone-validation
================================

AbstractPhoneValidation - Wrapper to quickly start using the powerful AbstractAPI's Phone Validation service in your projects.

1.0.0(5y ago)14.1kMITPHPPHP &gt;=5.6

Since Apr 9Pushed 5y ago1 watchersCompare

[ Source](https://github.com/abstractapi/php-phone-validation)[ Packagist](https://packagist.org/packages/abstractapi/php-phone-validation)[ Docs](https://github.com/abstractapi/php-phone-validation)[ RSS](/packages/abstractapi-php-phone-validation/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

AbstractAPI php-phone-validation library
========================================

[](#abstractapi-php-phone-validation-library)

Integrate the powerful [Phone Validation API from Abstract](https://www.abstractapi.com/phone-validation-api) in your PHP project in a few lines of code.

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.

Documentation
=============

[](#documentation)

Supported PHP Versions
----------------------

[](#supported-php-versions)

This library supports the **PHP version 5.6** and higher.

Installation
------------

[](#installation)

You can install **php-phone-validation** via composer or by downloading the source.

### Via Composer:

[](#via-composer)

**php-phone-validation** is available on Packagist as the [`abstractapi/php-phone-validation`](https://packagist.org/packages/abstractapi/php-phone-validation) package:

```
composer require abstractapi/php-phone-validation
```

API key
-------

[](#api-key)

Get your API key for free and without hassle from the [Abstact website](https://app.abstractapi.com/users/signup?target=/api/phone-validation/pricing/select).

Quickstart
----------

[](#quickstart)

### Verify phone

[](#verify-phone)

```
// Verify phone using Abstract's Phone  Validation and Verification API and PHP
