PHPackages                             yiteng/yiteng-api - 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. yiteng/yiteng-api

ActiveLibrary[API Development](/categories/api)

yiteng/yiteng-api
=================

1.2.15(4y ago)012Apache-2.0PHP

Since Nov 7Pushed 4y ago1 watchersCompare

[ Source](https://github.com/csq6868/yiteng-api)[ Packagist](https://packagist.org/packages/yiteng/yiteng-api)[ RSS](/packages/yiteng-yiteng-api/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (3)Versions (5)Used By (0)

yiteng Api SDK For PHP
======================

[](#yiteng-api-sdk-for-php)

ver 1.2.13

`yitengAPI`
-----------

[](#yitengapi)

`yitengAPI`代码是引用`ThinkPHP`官方推出的统一`API`接口的客户端代码。

安装依赖
----

[](#安装依赖)

```
composer require yiteng/yiteng-api

```

快速使用
----

[](#快速使用)

以查询身份证所属地区接口为例

```
use yiteng\api\Client;

$client = new Client("YourAppCode");

$result = $client->idcardIndex()
    ->withCardno('身份证号码')
    ->request();

```

请务必注意方法大小写必须保持一致,所有的API调用服务必须设置`appCode`值，用于接口调用的身份认证。

返回数据
----

[](#返回数据)

`yitengAPI`所有的接口返回数据为`JSON`格式，通用规范如下：

名称类型说明codeint返回码,1 表示成功 其它表示失败msgstring返回提示信息dataarray返回数据

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

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

Every ~0 days

Total

4

Last Release

1652d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/bce6804a5cd8c026b98dcbe235aa7ad23b60ec531693df308c4d9c6af9b04d5a?d=identicon)[sq-it@139.com](/maintainers/sq-it@139.com)

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/yiteng-yiteng-api/health.svg)

```
[![Health](https://phpackages.com/badges/yiteng-yiteng-api/health.svg)](https://phpackages.com/packages/yiteng-yiteng-api)
```

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

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