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

ActiveLibrary[API Development](/categories/api)

kuga/openapi-sdk
================

kuga核心SDK

0.2(7y ago)034LGPL-3.0PHPPHP &gt;=5.6

Since Dec 19Pushed 3y ago2 watchersCompare

[ Source](https://github.com/misnet/kuga-openapi-sdk)[ Packagist](https://packagist.org/packages/kuga/openapi-sdk)[ RSS](/packages/kuga-openapi-sdk/feed)WikiDiscussions master Synced today

READMEChangelog (9)Dependencies (5)Versions (12)Used By (0)

API网关使用说明
---------

[](#api网关使用说明)

- API网关处理程序在src/Core/Api/ApiService.php中
- 不同的接口处理约定在api的json说明文件中约定了，具体见api-json-samle这个例子目录
- 处理API的程序是根据json文件的约定，在src/Api目录中
- api.json文件的规范及相关api的约定见\[\]
- API网关会根据json文件的约定，对json文件中request部分进行校验，也会根据文件约定是否 需要accessToken进行校验；同时json文件中约定了API处理接口的命名空间及处理的类和方法。

初始化示例：

```
$customConfig = include('sample-config/config.default.php');
//不设置默认用/tmp
Kuga\Init::setTmpDir('/opt/tmp);
Kuga\Init::setup($customConfig);

```

API网关调用示例：

```
$requestObject = new Request($_POST);
$requestObject->setOrigRequest($_POST);
ApiService::setDi($this->getDI());
ApiService::initApiJsonConfigFile('路径/api.json');
$result = ApiService::response($requestObject);
echo json_encode($result);

```

###  Health Score

24

—

LowBetter than 30% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity55

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 ~40 days

Recently: every ~72 days

Total

11

Last Release

2762d ago

### Community

Maintainers

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

### Embed Badge

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

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

###  Alternatives

[lucasdotvin/laravel-soulbscription

A straightforward interface to handle subscriptions and features consumption.

709209.3k](/packages/lucasdotvin-laravel-soulbscription)

PHPackages © 2026

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