Download the PHP package sbgo/tencent-open-health-ecard without Composer

On this page you can find all versions of the php package sbgo/tencent-open-health-ecard. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package tencent-open-health-ecard

基于腾讯居民电子健康卡开放平台对接封装sdk

本sdk基于开放平台接口列表分装方便调用和判断返回结果 原始文档地址

初始化及调用方法,项目基于symfony,所以配置service.yml即可使用,框架本身处理了依赖注入,如果是symfony3需配置

ecard_gz_client:
    class:      GuzzleHttp\Client
ecard_http_client:
    class:      Tencent\ECard\HttpClient
    arguments:  ['@ecard_gz_client','@logger','%ecard.app_id%','%ecard.app_secret%','%ecard.channel%','%ecard.hospital_id%','%ecard.auth_url%','%ecard.base_url%']
ecard_client:
    class:      Tencent\ECard\Client
    arguments:  ['@ecard_http_client']

其中 Tencent\ECard\HttpClient 传参参数

ClientInterface $client  GuzzleHttp\Client 对象
LoggerInterface $logger logger对象
$appID  开放平台入驻成功的appid
$appSecret 开放平台入驻成功的appSecret
$channel  请求渠道 0为微信服务号
$hospitalID 医院入驻并已激活的医院id
$authUrl  中控服务获取token的get地址
$baseUrl  基础接口地址 https://p-healthopen.tengmed.com/rest/auth/HealthCard/HealthOpenPlatform

如果 没使用依赖注入型框架需手动处理对象实例化问题


All versions of tencent-open-health-ecard with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0
guzzlehttp/guzzle Version ^6.0
psr/log Version ~1.0
ext-curl Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package sbgo/tencent-open-health-ecard contains the following files

Loading the files please wait ....