PHPackages                             codingspook/simple-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. [Templating &amp; Views](/categories/templating)
4. /
5. codingspook/simple-rest-api

ActiveProject[Templating &amp; Views](/categories/templating)

codingspook/simple-rest-api
===========================

Simple REST API in PHP

v1.0.9(3mo ago)187MITPHPPHP &gt;=8.1

Since Nov 26Pushed 3mo agoCompare

[ Source](https://github.com/codingspook/simple-rest-api)[ Packagist](https://packagist.org/packages/codingspook/simple-rest-api)[ RSS](/packages/codingspook-simple-rest-api/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (11)Used By (0)

Simple Rest API
===============

[](#simple-rest-api)

Template minimale per creare backend REST API in PHP

Installazione
-------------

[](#installazione)

### Tramite Composer create-project

[](#tramite-composer-create-project)

```
composer create-project codingspook/simple-rest-api nome-progetto
```

### Setup iniziale

[](#setup-iniziale)

1. **Configura il web server** per puntare alla directory `public/` (se non è già configurato)
2. **Configura la connessione al database** in `config/database.php`
3. **Configura il CORS** in `config/cors.php`
4. **Configura le route** in `routes/index.php`

Struttura del Progetto
----------------------

[](#struttura-del-progetto)

```
nome-progetto/
├── config/
│   ├── database.php     # Configurazione database
│   └── cors.php         # Configurazione CORS
├── routes/
│   └── index.php        # Definizione route
├── public/
│   └── index.php        # Entry point
├── src/
│   ├── bootstrap.php    # Bootstrap dell'applicazione
│   ├── Database/
│   ├── ├── DB.php              # Classe DB
│   │   └── JSONDB.php          # Classe JSONDB
│   ├── Models/
│   │   └── BaseModel.php       # Classe BaseModel
│   └── Utils/
│       ├── Request.php         # Classe Request
│       └── Response.php        # Gestione risposte JSON
├── composer.json        # Dipendenze Composer
└── README.md           # Questo file

```

Comandi Utili
-------------

[](#comandi-utili)

```
# Installa dipendenze
composer install

# Aggiorna autoload dopo aggiunta classi
composer dump-autoload

# Avvia server di sviluppo (PHP built-in)
php -S localhost:8000 -t public
```

Licenza
-------

[](#licenza)

MIT

Supporto
--------

[](#supporto)

Per domande o problemi, consulta la documentazione o apri una issue sul repository.

---

**Buon coding! 🚀**

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance80

Actively maintained with recent releases

Popularity11

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity50

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

Total

10

Last Release

103d ago

PHP version history (2 changes)v1.0.0PHP &gt;=7.4

v1.0.5PHP &gt;=8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/85d4d6d3e38efbb61b55d1b87b6c5c0bcd0012ce5ba4917ff20a0070efd9f761?d=identicon)[codingspook](/maintainers/codingspook)

---

Top Contributors

[![codingspook](https://avatars.githubusercontent.com/u/65157104?v=4)](https://github.com/codingspook "codingspook (16 commits)")

---

Tags

phpapitemplatemvcREST APIbackendsimple-router

### Embed Badge

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

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

PHPackages © 2026

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