PHPackages                             zkeysteam/openapi-sdk-php - 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. zkeysteam/openapi-sdk-php

ActiveLibrary[API Development](/categories/api)

zkeysteam/openapi-sdk-php
=========================

ZKEYS OpenAPI SDK for PHP

v1.0.0(6y ago)1141MITPHPPHP &gt;=5.3

Since Jan 8Pushed 6y agoCompare

[ Source](https://github.com/zkeysteam/openapi-sdk-php)[ Packagist](https://packagist.org/packages/zkeysteam/openapi-sdk-php)[ Docs](https://www.zkeys.com/)[ RSS](/packages/zkeysteam-openapi-sdk-php/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependenciesVersions (2)Used By (0)

ZKEYS OpenAPI SDK for PHP
=========================

[](#zkeys-openapi-sdk-for-php)

ZKEYS OpenAPI是ZKEYS开放API，目前提供三网短信、三要素/四要素实名接口。

运行环境
----

[](#运行环境)

- PHP 5.3+
- cURL extension

安装方法
----

[](#安装方法)

1. 如果您通过composer管理您的项目依赖，可以在你的项目根目录运行：

    $ composer require zkeysteam/openapi-sdk-php
2. 下载SDK源码，在您的代码中引入SDK目录下的`autoload.php`文件：

    require\_once '/path/to/openapi-sdk-php/autoload.php';

快速使用
----

[](#快速使用)

获取 access\_token

```
use Zkeys\OpenApi\Auth;
use Zkeys\OpenApi\options\AuthOption;

$authOption = new AuthOption();
$authOption->setSecretId('NuDbL3WsJzfFZR8y');// 设置Secret Id
$authOption->setSecretKey('JvPuOlre5ZjA61x8hCyTP2zYvfJnKaRL');// 设置Secret Key
$auth = new Auth();

$result = $auth->getToken($authOption);

if (!$result) {
    echo $auth->getError();
}

var_export($result);// 正常返回结果： array ( 'access_token' => '43a759e123477bc9ecbaa7b58ee6fa70', 'expires_in' => 7200 )

```

更多使用请参考 [测试用例](https://github.com/zkeysteam/openapi-sdk-php/blob/master/demo/Index.php)

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 80% 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

2323d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/59548496?v=4)[zkeys-team](/maintainers/zkeys-team)[@zkeys-team](https://github.com/zkeys-team)

---

Top Contributors

[![pingtest](https://avatars.githubusercontent.com/u/1801651?v=4)](https://github.com/pingtest "pingtest (8 commits)")[![oyjz](https://avatars.githubusercontent.com/u/34804395?v=4)](https://github.com/oyjz "oyjz (1 commits)")[![zkeys-team](https://avatars.githubusercontent.com/u/59548496?v=4)](https://github.com/zkeys-team "zkeys-team (1 commits)")

### Embed Badge

![Health badge](/badges/zkeysteam-openapi-sdk-php/health.svg)

```
[![Health](https://phpackages.com/badges/zkeysteam-openapi-sdk-php/health.svg)](https://phpackages.com/packages/zkeysteam-openapi-sdk-php)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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