Leslin/thinkphp5-restfulapi
restful-api风格接口 APP接口 APP接口权限 oauth2.0 接口版本管理 接口鉴权 observed · 2026-08-28
Health v2 · maintenance only
23/100
- Activity 0
- Release rhythm 8
- Longevity 100
Flags: no_license
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 3276
- days_rel: n/a
- days_push: 1253
- n_releases_24m: 0
Adoption not part of the score
1014 stars · 349 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A lightweight RESTful API starter built on ThinkPHP 5.1, providing token-based authentication (OAuth2-style access/refresh tokens), API versioning, and permission checks in under 200 lines of code. It is aimed at PHP developers building mobile-app or web API backends on the ThinkPHP framework.
Use cases
- build a restful api backend with thinkphp5
- add oauth2 access token authentication to php api
- version my api endpoints v1 v2
- secure app interfaces with token-based auth
- refresh token flow for mobile app api
- whitelist routes that skip authentication
When to choose
- you are already using ThinkPHP 5.x and need a quick API skeleton with auth
- you want a minimal, readable codebase to customize for app backends
When to avoid
- you use a modern PHP framework like Laravel or Symfony
- you need a non-RESTful or microservice architecture
- your project requires a permissive license (it uses the 996-prohibited NPL license)
- you need long-term support - the project is based on an aging framework
Facets
framework · maturity maintenance
api-framework auth routing middleware http-server web-development backend apis php self-hosted thinkphp5 restful-api oauth2 access-token api-versioning app-backend web-server
1 source
- readme: https://github.com/Leslin/thinkphp5-restfulapi · fetched 2026-08-28 · cc32b28924ea
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| Leslin/thinkphp5-restfulapi | main | 23 |
For agents
markdown · JSON · MCP: product_card(name="Leslin/thinkphp5-restfulapi")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem