PHPackages                             slvler/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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. slvler/phone-validation

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

slvler/phone-validation
=======================

Phone Validation API for app.abstractapi.com

v2.0.1(1y ago)28442MITPHPPHP ^8.1

Since Jan 26Pushed 1y ago1 watchersCompare

[ Source](https://github.com/slvler/phone-validation)[ Packagist](https://packagist.org/packages/slvler/phone-validation)[ Docs](https://github.com/slvler/phone-validation)[ RSS](/packages/slvler-phone-validation/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (6)Dependencies (6)Versions (9)Used By (0)

Phone Validation
================

[](#phone-validation)

[![tests](https://github.com/slvler/phone-validation/actions/workflows/tests.yml/badge.svg)](https://github.com/slvler/phone-validation/actions/workflows/tests.yml)[![Latest Stable Version](https://camo.githubusercontent.com/eec5898c054a07abda25c7ebcd271c5a8280d070fe31b245477d4ade319c8ac6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f736c766c65722f70686f6e652d76616c69646174696f6e2e737667)](https://packagist.org/packages/slvler/phone-validation)[![License](https://camo.githubusercontent.com/402b0be3031bc0d26c2184fe8c963dffdf7f21d3afae3f7be49cf85c8500823d/68747470733a2f2f706f7365722e707567782e6f72672f736c766c65722f70686f6e652d76616c69646174696f6e2f6c6963656e7365)](https://packagist.org/packages/slvler/phone-validation)[![Total Downloads](https://camo.githubusercontent.com/0a75a35700dcec2106df4944df1562ba3b1eb9d1bb0035a81bbff24e063eecfd/68747470733a2f2f706f7365722e707567782e6f72672f736c766c65722f70686f6e652d76616c69646174696f6e2f646f776e6c6f616473)](https://packagist.org/packages/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.

Requirements
------------

[](#requirements)

- PHP 8.1
- Laravel 9.x | 10.x | 11.x

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

[](#installation)

To install this package tou can use composer:

```
composer require slvler/phone-validation
```

Usage
-----

[](#usage)

- First, you should extract the config/phone.php file to the config folder.

```
php artisan vendor:publish --tag=phone
```

- 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.

```
ABSTRACT_BASE_URL=https:https://phonevalidation.abstractapi.com
ABSTRACT_API_KEY=YOUR-API-KEY
```

- Abstract's Phone Number Validation and Verification API simply requires your unique API key and the phone number you'd like to check:

```
use Slvler\PhoneValidation\Phone;

Phone::getData('14152007986');
```

- This was a successful request, so the valid phone number and details associated with it are returned below:

```
{
    "phone": "14152007986",
    "valid": true,
    "format":
    {
        "international": "+14152007986",
        "local": "(415) 200-7986"
    },
    "country":
    {
        "code": "US",
        "name": "United States",
        "prefix": "+1"
    },
    "location": "California",
    "type": "mobile",
    "carrier": "T-Mobile USA, Inc."
}
```

Testing
-------

[](#testing)

```
composer test
```

Credits
-------

[](#credits)

- [slvler](https://github.com/slvler)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](https://github.com/slvler/phone-validation/blob/main/LICENSE) for more information.

Contributing
------------

[](#contributing)

You're very welcome to contribute. Please see [CONTRIBUTING](https://github.com/slvler/phone-validation/blob/main/CONTRIBUTING.md) for details.

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~95 days

Recently: every ~167 days

Total

8

Last Release

532d ago

Major Versions

v1.1.1 → v2.0.02024-11-25

### Community

Maintainers

![](https://www.gravatar.com/avatar/0ab8128832fb3e8a0d513453a903d7c49475f5f89dbf7ec39cf1d0518026b7ea?d=identicon)[slvler](/maintainers/slvler)

---

Top Contributors

[![selviler](https://avatars.githubusercontent.com/u/56368718?v=4)](https://github.com/selviler "selviler (23 commits)")

---

Tags

api-clientapi-restlaravellaravel-apilaravel-deploymentlaravel-packagephonephone-numberphone-valicationphone-validationphone-validatorrest-apivalidationvalidatorphplaravelcuttly

###  Code Quality

TestsPHPUnit

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/slvler-phone-validation/health.svg)

```
[![Health](https://phpackages.com/badges/slvler-phone-validation/health.svg)](https://phpackages.com/packages/slvler-phone-validation)
```

###  Alternatives

[stevebauman/location

Retrieve a user's location by their IP Address

1.3k7.6M65](/packages/stevebauman-location)[josiasmontag/laravel-recaptchav3

Recaptcha V3 for Laravel package

2641.6M2](/packages/josiasmontag-laravel-recaptchav3)[dariusiii/tmdb-laravel

Laravel Package for TMDB ( The Movie Database ) API. Provides easy access to the wtfzdotnet/php-tmdb-api library.

1821.1k](/packages/dariusiii-tmdb-laravel)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
