medicalmundi/npi-registry-php-sdk

HTTP client for the NPI Registry Public records api.

Fund package maintenance!
pMononoke

v0.1.5 2023-09-09 10:02 UTC

This package is auto-updated.

Last update: 2024-04-09 11:23:01 UTC


README

HTTP client for the National Provider Identifier Registry Public records api.

CI Version License Total Downloads Latest Unstable Version composer.lock

⚠ Launching early stage releases (0.x.x) could break the API according to Semantic Versioning 2.0. We are using minor for breaking changes. This will change with the release of the stable 1.0.0 version.

Requirements

  • PHP ^7.4 | ^8.0
  • PHP ext-json

Installation

The preferred method of installation is to use composer:

$ composer require medicalmundi/npi-registry-php-sdk

Usage

You create a Npi registry SDK like so:

use MedicalMundi\NpiRegistry\SDK\NpiRegistry;

$npiRegistry = NpiRegistry::connect();

Searching providers

You create a Npi registry service, use a search resource like so:

use MedicalMundi\NpiRegistry\SDK\NpiRegistry;

$npiRegistry = NpiRegistry::connect();
$npiRegistry->search
            ->where('version', '2.1') // api version is mandatory
            ->where('city', 'atlanta')
            ->fetch();