PHPackages                             rayblair/numverifywrapper - 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. rayblair/numverifywrapper

ActiveLibrary[API Development](/categories/api)

rayblair/numverifywrapper
=========================

A Wrapper for Number Verification Api's such as numverify

1.0(7y ago)0714[2 PRs](https://github.com/rayblair06/numverifywrapper/pulls)MITPHP

Since Aug 30Pushed 3y ago1 watchersCompare

[ Source](https://github.com/rayblair06/numverifywrapper)[ Packagist](https://packagist.org/packages/rayblair/numverifywrapper)[ RSS](/packages/rayblair-numverifywrapper/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (1)Versions (4)Used By (0)

A PHP Wrapper for the Numverify API
===================================

[](#a-php-wrapper-for-the-numverify-api)

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

[](#installation)

`composer require rayblair/numverifywrapper`

### Laravel Integration

[](#laravel-integration)

Add the service provider to your `config/app.php` file:

```
    'providers'     => [
        // ...
        Rayblair\NumverifyWrapper\NumverifyServiceProvider::class,

    ],
```

Add the facade to your `config/app.php` file:

```
    'aliases'       => [
        // ...
        'Numverify' => Rayblair\NumverifyWrapper\Facades\Numverify::class,
    ],
```

#### Adding Api Key

[](#adding-api-key)

If you haven't already go to  and register for an api key. Publish the config file `php artisan vendor:publish` then either replace the environment variable within the config or place your api key within your .env as "NUMVERIFY\_API\_KEY="

### Laravel

[](#laravel)

###### Setting variables and verify

[](#setting-variables-and-verify)

You can set the object variables for number and country code with the below methods then run the verify() method to verify the set values.

```
Numverify::setNumber("1234567890");
Numverify::setCountryCode("GB");
Numverify::verify();
```

Alternatively you can stack them altogether.

```
Numverify::setNumber("1234567890")->setCountryCode("GB")->verify();
```

###### Shorthand method

[](#shorthand-method)

You can also just pass the phone number and the country code through the `verify()` method

```
Numverify::verify("+441234567890");
// OR
Numverify::verify("1234567890", "GB");
```

Or use the `numverify()` helper function.

```
numverify("1234567890");
// OR
numverify("1234567890", "GB");
```

###### Just return validation result

[](#just-return-validation-result)

```
// Returns either turn or false depending on api result

Numverify::isValid();
```

### Without Laravel

[](#without-laravel)

```
require_once "vendor/autoload.php";

$data['api_key'] = "";

$numverify = new Rayblair\NumverifyWrapper\NumverifyService($data);

$numverify->setNumber("1234567890")->setCountryCode("GB")->verify();
```

License
-------

[](#license)

NumverifyWrapper is licensed under the [MIT License](http://opensource.org/licenses/MIT).

Copyright 2018 Ray Blair

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity64

Established project with proven stability

 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

Unknown

Total

1

Last Release

2814d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ab35ad2244c1203e3b7f0fdbe2d765fcdcf92c4b51cddee2b82e522c841f4650?d=identicon)[rayblair06](/maintainers/rayblair06)

---

Top Contributors

[![rayblair06](https://avatars.githubusercontent.com/u/16214725?v=4)](https://github.com/rayblair06 "rayblair06 (6 commits)")

---

Tags

laravelnumverifyphp

### Embed Badge

![Health badge](/badges/rayblair-numverifywrapper/health.svg)

```
[![Health](https://phpackages.com/badges/rayblair-numverifywrapper/health.svg)](https://phpackages.com/packages/rayblair-numverifywrapper)
```

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

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