Download the PHP package genderapi/phone-validator without Composer
On this page you can find all versions of the php package genderapi/phone-validator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download genderapi/phone-validator
More information about genderapi/phone-validator
Files in genderapi/phone-validator
Download genderapi/phone-validator
More information about genderapi/phone-validator
Files in genderapi/phone-validator
Vendor genderapi
Package phone-validator
Short Description PHP SDK for validating and formatting phone numbers using the GenderAPI Phone Number Validation & Formatter API (https://genderapi.io)
License MIT
Package phone-validator
Short Description PHP SDK for validating and formatting phone numbers using the GenderAPI Phone Number Validation & Formatter API (https://genderapi.io)
License MIT
Please rate this library. Is it a good library?
Informations about the package phone-validator
đ Phone Number Validation & Formatter API (PHP SDK)
The phone-validator-php library uses the official GenderAPI Phone Number Validation & Formatter API to validate and format phone numbers from over 240 countries.
Whether your users enter phone numbers in various formats (e.g., 12128675309, +1 212 867 5309, 001-212-867-5309), this library will intelligently detect, validate, and convert the input into a standardized E.164 format (e.g., +12128675309).
â Features
- Converts phone numbers to E.164 format
- Validates if number is real and structurally possible
- Detects number type: mobile, landline, VoIP, etc.
- Identifies region/city based on area code
- Includes country-level metadata (e.g. ISO code)
- Built with PHP, works with Composer autoloading
đĻ Installation
Or manually:
đ Usage
đ Input Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
number |
string | â Yes | Phone number in any format |
address |
string | Optional | ISO country code (US), full country name (Turkey), or city name (Berlin) â helps resolve local numbers |
Example:
đ¤ API Response
đ Response Field Reference
| Field | Type | Description |
|---|---|---|
status |
Boolean | Was the request successful |
remaining_credits |
Integer | Remaining API credits |
regionCode |
String | ISO 3166-1 alpha-2 code (e.g. US) |
country |
String | Country name |
e164 |
String | Number formatted to E.164 |
isValid |
Boolean | Is number valid according to numbering rules |
isPossible |
Boolean | Is number structurally possible |
numberType |
String | Number type (MOBILE, FIXED_LINE, etc.) |
areaCode |
String | Area code from input |
location |
String | City/region matched from area code |
đĸ Number Type Values
| Value | Description |
|---|---|
FIXED_LINE |
Landline |
MOBILE |
Mobile phone |
FIXED_LINE_OR_MOBILE |
Ambiguous, could be both |
TOLL_FREE |
e.g. 800 numbers |
PREMIUM_RATE |
Expensive premium numbers |
SHARED_COST |
Cost shared between parties |
VOIP |
Internet-based phone |
PERSONAL_NUMBER |
Forwarding number |
PAGER |
Obsolete pager number |
VOICEMAIL |
Voicemail access |
UNKNOWN |
Cannot be determined |
âšī¸ More Information
- Supports 240+ countries and territories
- Detects mobile vs. landline automatically
- Great for sign-up forms, CRMs, messaging tools, and more
- More details: GenderAPI Docs
đ License
MIT License Š GenderAPI
All versions of phone-validator with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.4
The package genderapi/phone-validator contains the following files
Loading the files please wait ...