PHPackages                             restjs/rest-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. restjs/rest-api

ActiveProject[API Development](/categories/api)

restjs/rest-api
===============

RESTful API Boilerplate with OOP &amp; MVC Pattern

3.0.2(9mo ago)0192MITPHPPHP &gt;=8.2

Since Jan 13Pushed 9mo ago1 watchersCompare

[ Source](https://github.com/fullstackondemand/rest-api)[ Packagist](https://packagist.org/packages/restjs/rest-api)[ Docs](https://github.com/fullstackondemand/rest-api)[ RSS](/packages/restjs-rest-api/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (1)Versions (5)Used By (0)

RESTful API Boilerplate with OOP &amp; MVC Pattern
==================================================

[](#restful-api-boilerplate-with-oop--mvc-pattern)

[![Latest Stable Version](https://camo.githubusercontent.com/d73c74181a9efada079b79dd70fdcd490b25f165a47edf7ab84d56fb8343736f/687474703a2f2f706f7365722e707567782e6f72672f726573746a732f726573742d6170692f76)](https://packagist.org/packages/restjs/rest-api)[![License](https://camo.githubusercontent.com/56939c1d9f83c4ab8ddf65eab03873acc6720d4efca537d9409abccce86c0abc/687474703a2f2f706f7365722e707567782e6f72672f726573746a732f726573742d6170692f6c6963656e7365)](https://packagist.org/packages/restjs/rest-api)[![PHP Version Require](https://camo.githubusercontent.com/3f7c7737a24d86ee4026a02a5413853b6ad125388186dff4b52957fddb19d3e4/687474703a2f2f706f7365722e707567782e6f72672f726573746a732f726573742d6170692f726571756972652f706870)](https://packagist.org/packages/restjs/rest-api)

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

Installation
------------

[](#installation)

It's recommended that you use [Composer](https://getcomposer.org/) 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

[](#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 .

License
-------

[](#license)

MIT License. © 2025 [FullStackOnDemand](https://github.com/fullstackondemand)

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance56

Moderate activity, may be stable

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity54

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

Total

4

Last Release

296d ago

Major Versions

v1.0.0 → v2.0.02025-01-14

v2.0.0 → 3.0.02025-07-07

PHP version history (2 changes)v1.0.0PHP 7.1.\*|7.2.\*|7.3.\*|7.4.\*|8.0.\*|8.1.\*

3.0.0PHP &gt;=8.2

### Community

Maintainers

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

---

Top Contributors

[![fullstackondemand](https://avatars.githubusercontent.com/u/42427914?v=4)](https://github.com/fullstackondemand "fullstackondemand (10 commits)")

---

Tags

composerphp-rest-apiprojectphpcomposerREST APIweb servicesfile-uploadjwt-authenticationmy-sql

### Embed Badge

![Health badge](/badges/restjs-rest-api/health.svg)

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

###  Alternatives

[klev-o/telegram-bot-api

Simple and convenient object-oriented implementation Telegram bot API with php version ^7.4 support. You'll like it)

457.8k1](/packages/klev-o-telegram-bot-api)

PHPackages © 2026

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