phonechecker/phonechecker-php

There is no license information available for the latest version (v1.0.0) of this package.

The Official PHP library for PhoneChecker

v1.0.0 2020-09-03 16:27 UTC

This package is not auto-updated.

Last update: 2025-07-05 14:41:05 UTC


README

This library provides a simple api to integrate with Phonechecker and validate phone numbers.

Install with Composer

composer require phonechecker/phonechecker-php

Now you can start validating your numbers:

<?php
// import dependencies
require 'vendor/autoload.php';

// get the Phonechecker Client instance, replace with your project token
$phoneCheckerClient = new Phonechecker\Client("PHONECHECKER_TOKEN");

// validate a number
$phoneCheckerClient->validationSyntax("55", "11", "934748118"); 

Quick Examples

Checks if a number has whatsapp

$phoneCheckerClient->validationWhatsapp("55", "11", "934748118"); 

Checks if a number rings and someone answers

$phoneCheckerClient->validationLiveness("55", "11", "934748118"); 

Complete validation

$phoneCheckerClient->validationComplete("55", "11", "934748118"); 

Usage notes

So far phonechecker only supports Brazil numbers, so the DDI must always be "55"

API Documentation