kyleweishaupt / cakephp-npi-registry
CakePHP Plugin for interacting with the NPPES NPI Registry.
Installs: 2
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:cakephp-plugin
Requires
- php: >=7.4
Requires (Dev)
- cakephp/cakephp: ^4.4
- cakephp/cakephp-codesniffer: ^4.0
README
CakePHP plugin for interacting with the NPPES NPI Registry API.
Intro
This is intended to be a few simple tools to make it easier to query and validate individual providers and organizations on the registry.
The package is mainly a wrapper for converting requests and responses from the API into PHP classes.
The API client is based on version 2.1 as it is the only supported/recommended version at the time of creation.
Disclaimer
This package is NOT affiliated with CMS and/or the U.S. government in any way, shape or form. This is simply a PHP abstraction to a public and free API provided by CMS.
There is no warranty whatsoever and using this package is entirely at your own risk. Any nefarious or malicious use is strictly forbidden.
Install
Using Composer to install:
composer require kyleweishaupt/cakephp-npi-registry
Then update src/Application.php
:
public function bootstrap() { $this->addPlugin('NPIRegistry'); }
Usage
To Do: Improve this.
use NPIRegistry\NPIRegistryService; NPIRegistryService::individuals()->searchByName(string $name); NPIRegistryService::organizations()->searchByName(string $name);
Contributing
This may or may not be maintained in the future.
If you need this functionality for a production environment, I highly recommend forking the repository.
License
Copyright (c) 2023-present, Licensed under The MIT License.