1. Go to this page and download the library: Download cedwardsmedia/everyonephp 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/ */
cedwardsmedia / everyonephp example snippets
// Instantiate EveryonePHP
$api = new EveryonePHP();
// Set EveryoneAPI Credentials
$api->sid = "9e3cef42da225d42bd86feaa80ff47";
$api->token = "65f3ef01462c62f7f4ce7d2156ceee";
// Set EveryoneAPI Data Points
$data = array("name", "profile", "cnam", "gender", "image", "address", "location", "line_provider", "carrier", "carrier_o", "linetype");
// Print results
// Print first name
echo $api->results->data->expanded_name->first;
// Print last name
echo $api->results->data->expanded_name->last;
// Print carrier name
echo $api->results->data->carrier->name;
// Check for Error
if ($api->error) { // If there's an error
echo "Error: $api->error"; // Print it out
exit(1); // Exit with status 1
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.