medicalmundi / npi-registry-php-sdk
HTTP client for the NPI Registry Public records api.
Fund package maintenance!
pMononoke
Installs: 2 426
Dependents: 1
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 2
Open Issues: 0
Requires
- php: ^7.4 || ^8.0
- ext-json: *
- juststeveking/php-sdk: ^1.1
- nyholm/psr7: ^1.8
- php-di/php-di: ^6.0
- php-http/guzzle7-adapter: ^1.0
- symfony/http-client: ^4.4 || ^5.4
Requires (Dev)
- malukenho/docheader: ^0.1.8
- php-http/mock-client: ^1.6
- phpunit/phpunit: ^9.0
Conflicts
- symfony/http-client: <4.4.11
README
HTTP client for the National Provider Identifier Registry Public records api.
⚠ 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();