jlorente / laravel-stethome
Laravel ^5.6 integration for the Jlorente StethoMe package.
Installs: 4 739
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: >=7.0
- illuminate/support: >=5.5
- jlorente/stethome-php-sdk: ^2.0.2
README
Laravel integration for the StethoMe SDK.
Installation
The preferred way to install this extension is through composer.
With Composer installed, you can then install the extension using the following commands:
$ php composer.phar require jlorente/laravel-stethome
or add
... "require": { "jlorente/laravel-stethome": "*" }
to the require
section of your composer.json
file.
Configuration
- Register the ServiceProvider in your config/app.php service provider list.
config/app.php
return [ //other stuff 'providers' => [ //other stuff \Jlorente\Laravel\StethoMe\StethoMeServiceProvider::class, ]; ];
- Add the following facade to the $aliases section.
config/app.php
return [ //other stuff 'aliases' => [ //other stuff 'StethoMe' => \Jlorente\Laravel\StethoMe\Facades\StethoMe::class, ]; ];
- Set the vendor_token in the config/stethome.php file or use the predefined env variables.
config/stethome.php
return [ 'vendor_token' => 'YOUR_VENDOR_TOKEN', //other configuration ];
or .env
//other configurations
STETHOME_VENDOR_TOKEN=<YOUR_VENDOR_TOKEN>
Usage
You can use the facade alias StethoMe to execute api calls. The authentication params will be automaticaly injected.
StethoMe::pulmonary()->getVisitId();
See the StethoMe PHP SDK or the StethoMe API to know more about the methods and the API endpoints params and responses.
License
Copyright © 2020 José Lorente Martín jose.lorente.martin@gmail.com.
Licensed under the BSD 3-Clause License. See LICENSE.txt for details.