定制 jlorente/laravel-stethome 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

jlorente/laravel-stethome

最新稳定版本:2.0.3

Composer 安装命令:

composer require jlorente/laravel-stethome

包简介

Laravel ^5.6 integration for the Jlorente StethoMe package.

README 文档

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

  1. 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,
    ];
];
  1. Add the following facade to the $aliases section.

config/app.php

return [
    //other stuff
    'aliases' => [
        //other stuff
        'StethoMe' => \Jlorente\Laravel\StethoMe\Facades\StethoMe::class,
    ];
];
  1. 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.

统计信息

  • 总下载量: 5.52k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2020-03-05