HTTP client for the National Provider Identifier Registry Public records api.
- PHP ^7.4
- PHP ext-json
The preferred method of installation is to use composer:
$ composer require medicalmundi/npi-registry-php-sdk
You create a Npi registry SDK like so:
use MedicalMundi\NpiRegistry\SDK\NpiRegistry;
$npiRegistry = NpiRegistry::connect();
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();
⚠ 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.