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

ActiveLibrary[API Development](/categories/api)

yuanben/yb-openapi-sdk-php
==========================

yb-openapi-sdk-php

v1.0.8(9y ago)341MITPHPPHP &gt;=5.3

Since Apr 14Pushed 5y ago3 watchersCompare

[ Source](https://github.com/yuanbenio/yb-openapi-sdk-php)[ Packagist](https://packagist.org/packages/yuanben/yb-openapi-sdk-php)[ Docs](https://github.com/yuanbenio/yb-openapi-sdk-php)[ RSS](/packages/yuanben-yb-openapi-sdk-php/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (2)Versions (9)Used By (0)

Yuanben/yb-openapi-sdk-php
==========================

[](#yuanbenyb-openapi-sdk-php)

Usage
-----

[](#usage)

### Media

[](#media)

```
$config = new Config($token, Config::USER_MEDIA);

$client = new Client($config);

$title = 'Hello World.';
$content = 'DearMadMan.';
$article = new Article($title, $content);

$license = new License(License::LICENSE_CC);
$license->setAdaptation(License::LICENSE_CC_ADAPTATION_Y)->setCommercial(License::LICENSE_CC_COMMERCIAL_N);

$article->setLicense($license);

$response = $client->post($article);

var_dump($response instanceof Article);

// multiple data
$collect = new Collection();

$article2 = new Article('The Title Of Article 2.', 'The Body.');
$article2->setLicense($license);

$collect->push($article)->push($article2);

$response = $client->post($collect);

var_dump($response instanceof Colletion);

```

### Platform

[](#platform)

```
$config = new Config($token, Config::USER_PLATFORM);

$client = new Client($config);

$title = 'Hello World.';
$content = 'DearMadMan.';
$article = new Article($title, $content);

$license = new License(License::LICENSE_CC);
$license->setAdaptation(License::LICENSE_CC_ADAPTATION_Y)->setCommercial(License::LICENSE_CC_COMMERCIAL_N);

$author = new Author('i@dearmadman.com', 'DearMadMan.');

$article->setLicense($license)
    ->setAuthor($author);

$response = $client->post($article);

// multiple data
$collect = new Collection();

$article2 = new Article('The Title Of Article 2.', 'The Body.');
$article2->setLicense($license)
    ->setAuthor($author);

$collect->push($article)->push($article2);

$response = $client->post($collect);

```

License Instance
----------------

[](#license-instance)

```
$license = License::fromJson($json);

```

Exception
---------

[](#exception)

```
try {
$response = $client->post($collect);
} catch (\Exception $e) {
    echo $e->getMessage();
}

```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 66.7% 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 ~3 days

Total

8

Last Release

3288d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3bcdb883ac5a8d3b050d97645820260d1bde745f6aa234b38849b78b3e4cdea6?d=identicon)[yuanben](/maintainers/yuanben)

---

Top Contributors

[![lencyforce](https://avatars.githubusercontent.com/u/3778069?v=4)](https://github.com/lencyforce "lencyforce (6 commits)")[![DearMadMan](https://avatars.githubusercontent.com/u/6621779?v=4)](https://github.com/DearMadMan "DearMadMan (2 commits)")[![koalacxr](https://avatars.githubusercontent.com/u/6064099?v=4)](https://github.com/koalacxr "koalacxr (1 commits)")

### Embed Badge

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

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

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