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

ActiveLibrary[API Development](/categories/api)

ddmc/core-openapi-php-sdk
=========================

core-openapi-php-sdk

1.1.6(6y ago)0551MITPHPPHP &gt;=5.4.0

Since Jun 28Pushed 6y ago1 watchersCompare

[ Source](https://github.com/ainiaa/core-openapi-php-sdk)[ Packagist](https://packagist.org/packages/ddmc/core-openapi-php-sdk)[ RSS](/packages/ddmc-core-openapi-php-sdk/feed)WikiDiscussions master Synced 5d ago

READMEChangelogDependenciesVersions (18)Used By (1)

PHP SDK 接入指南
============

[](#php-sdk-接入指南)

接入指南
----

[](#接入指南)

1. PHP version &gt;= 5.4 &amp; curl extension support
2. 通过composer安装SDK

安装
--

[](#安装)

```
php
    composer require ddxq/core-openapi-php-sdk

```

PS
--

[](#ps)

当前类库只是一个通用类库，具体的逻辑还需要根据业务来实现。

```
php

生成CoreOpenApi\Config对象的时候需要传递一个配置数组，数组的格式如下
CoreOpenApi\Config
$config = $extParams = [
    'appKey' => 'required',//appkey  $this->getAppKey() //来获取
    'appSecret' => 'required',//app secret $this->getAppSecret() //来获取
    'methodList' => [ //required api列表
        'alias1' => 'real api method1',
        'alias2' => 'real api method2',
        ...
    ],
    'extParams' => [ //optional 扩展配置  通过 $this->getParamByKey($key) //来获取
        'key' => 'value',
        'key2' => 'value',
    ],
];

$confObj = CoreOpenApi\Config($config);
$appKey = $confObj->getAppKey();
$appSecret = $confObj->getAppSecret();
$methodList = $confObj->getMethodList();
$key2 = $confObj->getParamByKey('key2');
$method = $confObj->getMethodByAlias('alias');

```

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity66

Established project with proven stability

 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

Every ~31 days

Recently: every ~82 days

Total

17

Last Release

2386d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/cb176bcd62e4274810b6b86971f8ce916e406db153290eccde554b210f4d4ae0?d=identicon)[ainiaa](/maintainers/ainiaa)

---

Top Contributors

[![ainiaa](https://avatars.githubusercontent.com/u/3380187?v=4)](https://github.com/ainiaa "ainiaa (27 commits)")

### Embed Badge

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

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

###  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)
