PHPackages                             vesparny/silex-simple-rest - 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. [Framework](/categories/framework)
4. /
5. vesparny/silex-simple-rest

ActiveLibrary[Framework](/categories/framework)

vesparny/silex-simple-rest
==========================

A simple silex skeleton for rest api

v2.3.0(9y ago)3346.8k92[1 issues](https://github.com/vesparny/silex-simple-rest/issues)MITPHP

Since Jul 1Pushed 8y ago33 watchersCompare

[ Source](https://github.com/vesparny/silex-simple-rest)[ Packagist](https://packagist.org/packages/vesparny/silex-simple-rest)[ Docs](http://github.com/vesparny/silex-simple-rest)[ RSS](/packages/vesparny-silex-simple-rest/feed)WikiDiscussions master Synced today

READMEChangelog (8)Dependencies (7)Versions (8)Used By (0)

Silex Simple REST
=================

[](#silex-simple-rest)

[![Latest Stable Version](https://camo.githubusercontent.com/a11c94f59335e6b51da6dfc6bb3ef621b499e149a9f5d5fedfb91cfe1976517a/68747470733a2f2f706f7365722e707567782e6f72672f7665737061726e792f73696c65782d73696d706c652d726573742f762f737461626c652e706e67)](https://packagist.org/packages/vesparny/silex-simple-rest) [![Total Downloads](https://camo.githubusercontent.com/a00604b83fb4775a855b31a315b6cf30b6107779e895a39b002f3babd8d04aeb/68747470733a2f2f706f7365722e707567782e6f72672f7665737061726e792f73696c65782d73696d706c652d726573742f646f776e6c6f6164732e706e67)](https://packagist.org/packages/vesparny/silex-simple-rest) [![Build Status](https://camo.githubusercontent.com/78ac55f45c8d239c0897642c982322a485100c07f57a9b0520313e4e675f653d/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f7665737061726e792f73696c65782d73696d706c652d726573742e706e67)](http://travis-ci.org/vesparny/silex-simple-rest)

A simple silex skeleton application for writing RESTful API. Developed and maintained by [Alessandro Arnodo](http://alessandro.arnodo.net).

**This project wants to be a starting point to writing scalable and maintainable REST api with Silex PHP micro-framework**

Continuous Integration is provided by [Travis-CI](http://travis-ci.org/).

#### How do I run it?

[](#how-do-i-run-it)

After download the last [release](https://github.com/vesparny/silex-simple-rest/releases), from the root folder of the project, run the following commands to install the php dependencies, import some data, and run a local php server.

You need at least php **5.5.9**\* with **SQLite extension** enabled and **Composer**

```
composer install
sqlite3 app.db < resources/sql/schema.sql
php -S 0:9001 -t web/

```

You can install the project also as a composer project

```
	composer create-project vesparny/silex-simple-rest

```

Your api is now available at .

#### Run tests

[](#run-tests)

Some tests were written, and all CRUD operations are fully tested :)

From the root folder run the following command to run tests.

```
vendor/bin/phpunit

```

#### What you will get

[](#what-you-will-get)

The api will respond to

```
GET  ->   http://localhost:9001/api/v1/notes
GET  ->   http://localhost:9001/api/v1/notes/{id}
POST ->   http://localhost:9001/api/v1/notes
PUT ->   http://localhost:9001/api/v1/notes/{id}
DELETE -> http://localhost:9001/api/v1/notes/{id}

```

Your request should have 'Content-Type: application/json' header. Your api is CORS compliant out of the box, so it's capable of cross-domain communication.

Try with curl:

```
#GET (collection)
curl http://localhost:9001/api/v1/notes -H 'Content-Type: application/json' -w "\n"

#GET (single item with id 1)
curl http://localhost:9001/api/v1/notes/1 -H 'Content-Type: application/json' -w "\n"

#POST (insert)
curl -X POST http://localhost:9001/api/v1/notes -d '{"note":"Hello World!"}' -H 'Content-Type: application/json' -w "\n"

#PUT (update)
curl -X PUT http://localhost:9001/api/v1/notes/1 -d '{"note":"Uhauuuuuuu!"}' -H 'Content-Type: application/json' -w "\n"

#DELETE
curl -X DELETE http://localhost:9001/api/v1/notes/1 -H 'Content-Type: application/json' -w "\n"

```

#### What's under the hood

[](#whats-under-the-hood)

Take a look at the source code, it's self explanatory :) More documentation and info about the code will be available soon.

Under the resources folder you can find a .htaccess file to put the api in production.

#### Contributing

[](#contributing)

Fell free to contribute, fork, pull request, hack. Thanks!

#### Author

[](#author)

- [@vesparny](https://twitter.com/vesparny)
-
-

License
-------

[](#license)

see LICENSE file.

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity40

Moderate usage in the ecosystem

Community26

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 67.4% 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 ~171 days

Recently: every ~262 days

Total

8

Last Release

3500d ago

Major Versions

v1.0.0 → v2.0.02013-11-24

### Community

Maintainers

![](https://www.gravatar.com/avatar/00001a3ba9417bb78df09b7e2ca71e58dbbc7bd8a233e9cc2ad2307ed2512e40?d=identicon)[vesparny](/maintainers/vesparny)

---

Top Contributors

[![vesparny](https://avatars.githubusercontent.com/u/82070?v=4)](https://github.com/vesparny "vesparny (29 commits)")[![fabianfabian](https://avatars.githubusercontent.com/u/343640?v=4)](https://github.com/fabianfabian "fabianfabian (9 commits)")[![bryant1410](https://avatars.githubusercontent.com/u/3905501?v=4)](https://github.com/bryant1410 "bryant1410 (1 commits)")[![kevich](https://avatars.githubusercontent.com/u/2560726?v=4)](https://github.com/kevich "kevich (1 commits)")[![websoftix](https://avatars.githubusercontent.com/u/479107?v=4)](https://github.com/websoftix "websoftix (1 commits)")[![itsjw](https://avatars.githubusercontent.com/u/10774154?v=4)](https://github.com/itsjw "itsjw (1 commits)")[![davydhaeyer](https://avatars.githubusercontent.com/u/1764033?v=4)](https://github.com/davydhaeyer "davydhaeyer (1 commits)")

---

Tags

apiframeworkrestsilex

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/vesparny-silex-simple-rest/health.svg)

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

###  Alternatives

[gotzmann/comet

Modern PHP framework for building blazing fast REST APIs and microservices

68816.2k1](/packages/gotzmann-comet)[phprest/phprest

PHP Rest Framework.

3049.3k](/packages/phprest-phprest)[psx/psx

PHP REST API Framework

17112.6k3](/packages/psx-psx)[patricksavalle/slim-rest-api

Production-grade REST-API App-class for PHP SLIM, in production on https://zaplog.pro (https://api.zaplog.pro/v1)

101.4k](/packages/patricksavalle-slim-rest-api)

PHPackages © 2026

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