PHP code example of zeeshan / inspector

1. Go to this page and download the library: Download zeeshan/inspector 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/ */

    

zeeshan / inspector example snippets


// Your FulContact API key https://portal.fullcontact.com/signup
$apiKey = "";

$inspector = new Inspector($apiKey);
$person = $inspector->getProfile("[email protected]");

$person->getPhotos();
// An array of arrays where typename could be one of 'facebook', 'Gravatar', 'Twitter' etc
// [
//    [
//        "typeName" => "Facebook"
//        "url"      => "https://d2ojpxxtu63wzl.cloudfront.net/static/a2dcfe7a0136f34ace8c8fd378557a96_ce4301d022a5423869916af01ad8c2c//                       e11f7638b11958db47b89bf4ef7369ab7",
//    ],
//    [..],
//    [..],
//    [..],
// ]

$person->getContactInfo();
// An array of found contact info e.g websites and full name
// [
//    "websites" =>  [
//          [
//             "url" => "http://webxyz.com",
//          ],
//     ],
//     "fullName" => "Zeeshan Ahmed",
// ]

$person->getOrganizations();
// An array of organizations found in which he worked or currently working
// [
//    [
//        "name"        => "Company XYZ",
//        "startDate"   => "2014-07",
//        "title"       => "Software Engineer",
//        "current"     => true,               
//    ],
//    [..],
// ]

$person->getDemographics();
// An array of information about the user location
// [
//    [
//        "locationDeduced" => [
//              "normalizedLocation" => "Pakistan",
//              "deducedLocation"    => "Pakistan",
//              "country" => [
//                  "name"  => "Pakistan",
//                  "code" => "PK",
//              ],
//              "continent" => [
//                  "deduced"   => true
//                  "name"      => "Asia"
//              ],
//              "likelihood" => true,
//        ],
//        "locationGeneral" => "Pakistan",
//        "gender" => "Male",               
//    ],
// ]

$person->getSocialProfiles();
// An array of user social network links or information
// [
//    [
//        "bio"      => "Full Stack Web Engineer, Blogger, Freelancer, IT Enthusiast, Open Source and Web Lover, PHP and Javascript Fanatic",
//        "typeName" => "Twitter",
//        "url"      => "https://twitter.com/ziishaned",
//        "username" => "ziishaned",              
//    ],
//    [..],
//    [..],
//    [..],
//    [..],
// ]

$person->getInterests();
// An array of user digital Footprint or user interests
// [
//    "Blogging", "Cloud Computing", "Software Development", "Cybersecurity", "Hacking",
// ]

$person->getEmail();
// User email address
// "[email protected]"