PHPackages                             sbgo/tencent-open-health-ecard - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. sbgo/tencent-open-health-ecard

ActiveLibrary[API Development](/categories/api)

sbgo/tencent-open-health-ecard
==============================

腾讯开放平台居民电子健康卡请求sdk封装

1.0.0(5y ago)017mitPHPPHP &gt;=7.0

Since Sep 10Pushed 5y ago1 watchersCompare

[ Source](https://github.com/johnorcc/tencent-health-ecard)[ Packagist](https://packagist.org/packages/sbgo/tencent-open-health-ecard)[ RSS](/packages/sbgo-tencent-open-health-ecard/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

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

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

本sdk基于开放平台接口列表分装方便调用和判断返回结果 [原始文档地址](https://open.tengmed.com/doc/)

初始化及调用方法，项目基于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

```

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

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2122d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1db8245f74106887d05c2baeaac259dd49108f421e3d17f52e0b101d31ac4561?d=identicon)[oneDayoneDot](/maintainers/oneDayoneDot)

---

Top Contributors

[![johnorcc](https://avatars.githubusercontent.com/u/60473899?v=4)](https://github.com/johnorcc "johnorcc (5 commits)")

### Embed Badge

![Health badge](/badges/sbgo-tencent-open-health-ecard/health.svg)

```
[![Health](https://phpackages.com/badges/sbgo-tencent-open-health-ecard/health.svg)](https://phpackages.com/packages/sbgo-tencent-open-health-ecard)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.5k5.9M737](/packages/sylius-sylius)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[avalara/avataxclient

Client library for Avalara's AvaTax suite of business tax calculation and processing services. Uses the REST v2 API.

528.5M7](/packages/avalara-avataxclient)[drupal/core

Drupal is an open source content management platform powering millions of websites and applications.

21866.0M1.7k](/packages/drupal-core)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M47](/packages/tencentcloud-tencentcloud-sdk-php)[keboola/storage-api-client

Keboola Storage API PHP Client

10405.9k40](/packages/keboola-storage-api-client)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
