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 today

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 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

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

1530d 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

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M479](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M271](/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)
