blueskyci / laravel-point-click-care
A laravel wrapper for Point Click Care
0.0.7
2023-12-29 13:36 UTC
Requires
- php: >=7.4
- illuminate/support: 5.6.*|5.7.*|5.8.*|^6.0|^7.0|^8.0|^9.0|^10.0
- league/oauth2-client: ^2.4
Requires (Dev)
- orchestra/testbench: ^5.2
README
WARNING - WIP [Paginated results not finished]
This composer package makes connecting and working with the PointClickCare API easier and more fluent within laravel.
Installation
composer require blueskyci/laravel-point-click-care
Publish the vendor files so that you can inherit configurations, migrations, and setup views.
php artisan vendor:publish --provider="Blueskyci\PointClickCare\PointClickCareServiceProvider"
Add the secrets to your .env file
POINTCLICKCARE_CLIENT_ID= POINTCLICKCARE_CLIENT_SECRET= POINTCLICKCARE_DEFAULT_ORG_UUID=
Usage
// Initiate a connection using client credentials $pcc = PointClickCare::organization(); // Use the default org from .env $pcc = PointClickCare::organization($orgUuid); // Override the org UUID // returns a collection of facilities $pcc->facilities()->all();
Available Resources
- Facilities
- Find
- List
- Patients
- Find
- List
Testing
composer test