PHP code example of adesigns / nppes-api

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

    

adesigns / nppes-api example snippets


$client = new NPPESApi();

$results = $client->search(array('last_name' => "Smith"));

var_dump($results);

$client = new NPPESApi();

/** @var Provider **/
$provider = $client->searchByNumber(1234567890);

var_dump($provider);