PHPackages                             bbweyne/restful-api - 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. bbweyne/restful-api

ActiveLibrary[API Development](/categories/api)

bbweyne/restful-api
===================

A RESTful API package for thinkphp5

1.0.0(8y ago)213Apache-2.0PHP

Since Mar 15Pushed 8y ago1 watchersCompare

[ Source](https://github.com/bbweyne/restful-api)[ Packagist](https://packagist.org/packages/bbweyne/restful-api)[ RSS](/packages/bbweyne-restful-api/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

RESTful-Api
===========

[](#restful-api)

要求
--

[](#要求)

PHP &gt;= 5.5

说明
--

[](#说明)

thinkphp5编写的restful风格的API，集API请求处理，权限认证，自动生成文档等功能；

- restful风格处理请求

> 每个接口对于一个控制器，method对应\[method\]方法响应

- 权限认证

> Basic,Oauth Client Credentials Grant

- 文档生成

> 简洁，优雅，不需要额外的文档工具;

安装
--

[](#安装)

- 如果想在你的TP5项目中使用,那么可以直接使用

```
composer require bbweyne/restful-api

```

- 如果是新项目先要创建tp5项目,然后再require

```
composer create-project topthink/think api  --prefer-dist
composer require bbweyne/restful-api

```

- 如果要使用生成文档 需要在public/static/ 下 安装hadmin

```
cd /public/static/
git clone  https://github.com/liushoukun/hadmin.git

```

dome &amp; 文档
-------------

[](#dome--文档)

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 53.8% 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

Unknown

Total

1

Last Release

3030d ago

### Community

Maintainers

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

---

Top Contributors

[![liushoukun](https://avatars.githubusercontent.com/u/26298472?v=4)](https://github.com/liushoukun "liushoukun (7 commits)")[![bbweyne](https://avatars.githubusercontent.com/u/11827791?v=4)](https://github.com/bbweyne "bbweyne (6 commits)")

### Embed Badge

![Health badge](/badges/bbweyne-restful-api/health.svg)

```
[![Health](https://phpackages.com/badges/bbweyne-restful-api/health.svg)](https://phpackages.com/packages/bbweyne-restful-api)
```

###  Alternatives

[naixiaoxin/think-wechat

EasyWechat For Thnkphp5.1+

26616.1k1](/packages/naixiaoxin-think-wechat)[gatsbyjs/wp-gatsby

Optimize your WordPress site as a source for Gatsby site(s)

16813.7k](/packages/gatsbyjs-wp-gatsby)[weiwei/api-doc

The ThinkPHP6 Api Doc Package

10010.3k](/packages/weiwei-api-doc)[liushoukun/dawn-api

A RESTful API package

273.2k](/packages/liushoukun-dawn-api)

PHPackages © 2026

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