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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
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


đŸ“Ļ 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


📄 License

MIT License Š GenderAPI


All versions of phone-validator with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package genderapi/phone-validator contains the following files

Loading the files please wait ...