承接 restjs/rest-api 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

restjs/rest-api

最新稳定版本:3.0.2

Composer 安装命令:

composer create-project restjs/rest-api

包简介

RESTful API Boilerplate with OOP & MVC Pattern

README 文档

README

Latest Stable Version License PHP Version Require

A minimalist, framework-free PHP RESTful API boilerplate you can fork to rapidly build your own CRUD endpoints backend by MySQL.

Installation

It's recommended that you use Composer to install Rest API.

composer create-project restjs/rest-api

This will install Rest API and all required dependencies. It requires PHP 8.2 or newer.

Folder Structure

├─── src
│     ├─── Api                                              # API Endpoint Folder
│     │     └─── [Slug]                                     # Route Folder
│     │             ├─── [Slug].php                         # Entity File
│     │             ├─── Controller.php                     # Controllers File
│     │             ├─── Model.php                          # Models File
│     │             └─── Router.php                         # Routes File
│     │
│     ├─── Middleware                                       # Middleware Folder
│     │     └─── Authorization.php                          # Authorization Middleware File
│     └─── function.php                                     # All External Functions file
│
├─── index.php                                              # Application Execute File 
├─── .env                                                   # Environment Variable File 
├─── .gitignore
├─── .htaccess 
├─── composer.json 
└─── README.md 

You may quickly test this using the built-in PHP server:

composer start

Going to http://localhost:8888/api/.

License

MIT License. © 2025 FullStackOnDemand

统计信息

  • 总下载量: 7
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-01-13