PHP code example of phonechecker / phonechecker-php

1. Go to this page and download the library: Download phonechecker/phonechecker-php library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

phonechecker / phonechecker-php example snippets



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

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

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

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

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

composer