PHPackages                             fuyelk/yapi-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. fuyelk/yapi-sdk

ActiveLibary[API Development](/categories/api)

fuyelk/yapi-sdk
===============

SDK for Yapi

0.2.1(4y ago)01.1kMITPHP

Since Jul 7Pushed 4y ago1 watchersCompare

[ Source](https://github.com/fuyelk/yapi-sdk)[ Packagist](https://packagist.org/packages/fuyelk/yapi-sdk)[ RSS](/packages/fuyelk-yapi-sdk/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (7)Used By (0)

yapi-sdk 为Yapi平台写的SDK
---------------------

[](#yapi-sdk-为yapi平台写的sdk)

安装
--

[](#安装)

> composer require fuyelk/yapi-sdk

> Yapi官方地址
>

特性
--

[](#特性)

1. 自动登录
2. 支持导出4种文件类型

方法
--

[](#方法)

```
$email = 'admin@admin.com';
$password = '123456';
$host = 'http://api.example.com:3000';
$yapi = new Yapi($email, $password, $host);

// 导出html
$res = $yapi->export(100, 'html', __DIR__ . '/temp/export.html');

// 导出JSON文件
$res = $yapi->export(100, 'json', __DIR__ . '/temp/export.json');

// 导出markdown
$res = $yapi->export(100, 'markdown', __DIR__ . '/temp/export.markdown');

// 导出swagger
$res = $yapi->export(100, 'swagger', __DIR__ . '/temp/export.swagger');

```

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

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

Recently: every ~59 days

Total

6

Last Release

1583d ago

### Community

Maintainers

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

---

Top Contributors

[![fuyelk](https://avatars.githubusercontent.com/u/18348153?v=4)](https://github.com/fuyelk "fuyelk (6 commits)")

### Embed Badge

![Health badge](/badges/fuyelk-yapi-sdk/health.svg)

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

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M20](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k13](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

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