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

ActiveLibrary

hgs/openapi
===========

02PHP

Since Jun 7Pushed 4y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

开源API封装
=======

[](#开源api封装)

安装vendor publish
----------------

[](#安装vendor-publish)

```
 composer require laravelista/lumen-vendor-publish:7.x
 app\Console\Kernel.php 中加入 VendorPublishCommand::class
```

安装hgs/openapi
-------------

[](#安装hgsopenapi)

```
 composer require hgs/openapi dev-master
 bootstrap/app.php中注册提供者$app->register(Hgs\Openapi\OpenapiServiceProvider::class);
 php artisan vendor:publish
 php artisan migrate
```

使用
--

[](#使用)

```
    $orderApiGateway = BusinessApiGatewayFactory::getTiktokBusinessApiGateway(Order::class, env("TIKTOK_STORE_APP_KEY"), env("TIKTOK_STORE_APP_SECRET"), 1);
    $data = $orderApiGateway->orderList();
```

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity29

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/16730087?v=4)[fengzewen](/maintainers/fengzewen)[@fengzewen](https://github.com/fengzewen)

---

Top Contributors

[![fengzewen](https://avatars.githubusercontent.com/u/16730087?v=4)](https://github.com/fengzewen "fengzewen (1 commits)")

### Embed Badge

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

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

PHPackages © 2026

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