Download the PHP package esi/numverify-api-client-php without Composer
On this page you can find all versions of the php package esi/numverify-api-client-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download esi/numverify-api-client-php
More information about esi/numverify-api-client-php
Files in esi/numverify-api-client-php
Package numverify-api-client-php
Short Description Numverify API Client for PHP
License MIT
Informations about the package numverify-api-client-php
Numverify API Client Library for PHP
Numverify phone number validation and country API client library for PHP.
This library is a fork of markrogoyski/numverify-api-client-php
. See Credits for more information.
Features
- Cache of client (Guzzle) calls. See
Construct API to use a cache
- Phone number validation API
- Validate phone numbers
- Carrier information
- Line type
- Location info: country, local information
- Phone number formats
- Countries API
- List of countries
- Country names, country codes, dialing codes
Numverify API documentation: https://numverify.com/documentation
Installation
Compatible with PHP >= 8.2 and can be installed with Composer.
Usage
Create New API
Phone Number Validation API
Countries API
Options
Signature of the Api Constructor
Construct API to use HTTPS for API Calls
Note: The Numverify api has different plan options when signing up for an access key. The 'free' plan cannot use the secure (HTTPS) url for the API.
Construct API to use a Custom Guzzle Client or Options
Note: If creating and passing your own client to Api
, it will completely ignore $useHttps
.
If you simply want to change some of Guzzle's default options, pass them along to the optional $options parameter instead.
Construct API to use a Cache
The Api constructor allows you to pass an optional $options
parameter, typically used to pass Guzzle options on to the client.
If you specify cachePath
within $options
, and it is a valid directory, the constructor will add the cache handler to Guzzle's handler stack.
Exceptions
API failures throw a
About
Requirements
- PHP 8.2.0 or above.
Credits
- Author: Eric Sizemore
- Thanks to all Contributors.
- Special thanks to JetBrains for their Licenses for Open Source Development.
numverify-api-client-php
is forked from markrogoyski/numverify-api-client-php
by Mark Rogoyski
.
My thanks to them, and all their contributors. To view changes in this library in comparison to the original library, please see the CHANGELOG.md file.
Contributing
See CONTRIBUTING for more information.
Bugs and feature requests are tracked on GitHub.
Contributor Covenant Code of Conduct
See CODE_OF_CONDUCT.md
Backward Compatibility Promise
See backward-compatibility.md for more information on Backwards Compatibility.
Changelog
See the CHANGELOG for more information on what has changed recently.
License
See the LICENSE for more information on the license that applies to this project.
Security
See SECURITY for more information on the security disclosure process.
All versions of numverify-api-client-php with dependencies
ext-json Version *
guzzlehttp/guzzle Version ^7.8
kevinrob/guzzle-cache-middleware Version ^5.1
symfony/cache Version ^7.0