New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

adesigns/nppes-api

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

adesigns/nppes-api

PHP Library to interact with the NPPES NPI Registry API

Source
Packagist
Version
v1.0.6
Version published
Total downloads
4.7K
Maintainers
1
Created
Source

NPPES NPI Registry API

This API allows you to easily look up providers using the NPI Registry API (https://npiregistry.cms.hhs.gov/registry/help-api).

Installation

via composer:

composer require adesigns/nppes-api

Basic Usage

1. Search for providers by any number of parameters. Will return an ApiResponse object with all providers.

To search the registry by a non-unique parameter (IE number), pass an array of parameters to the search() method. Available parameters can be seen in the NPPES Demo @ https://npiregistry.cms.hhs.gov/api/demo

$client = new NPPESApi();

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

var_dump($results);

1. Search for a single provider by NPI Number. Will return a single Provider object.

$client = new NPPESApi();

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

var_dump($provider);

Keywords

knp

FAQs

Package last updated on 23 Feb 2023

Related posts