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 yesterday

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 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

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

2071d 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.4k5.6M651](/packages/sylius-sylius)[theodo-group/llphant

LLPhant is a library to help you build Generative AI applications.

1.5k311.5k5](/packages/theodo-group-llphant)[wheelpros/fitment-platform-api

Magento 2 (Open Source)

12.1k1.2k](/packages/wheelpros-fitment-platform-api)[avalara/avataxclient

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

517.9M7](/packages/avalara-avataxclient)[alexacrm/dynamics-webapi-toolkit

Web API toolkit for Microsoft Dynamics 365 and Dynamics CRM

81324.1k1](/packages/alexacrm-dynamics-webapi-toolkit)[commercetools/commercetools-sdk

The official PHP SDK for the commercetools Composable Commerce APIs

19281.5k](/packages/commercetools-commercetools-sdk)

PHPackages © 2026

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