PHPackages                             vjeantet/silex-simple-rest-swagger - 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. vjeantet/silex-simple-rest-swagger

AbandonedProject[Framework](/categories/framework)

vjeantet/silex-simple-rest-swagger
==================================

A simple silex skeleton for rest api with swagger documentation

v3.0.1(11y ago)1633MITJavaScriptPHP &gt;=5.4.0

Since Jul 1Pushed 11y ago1 watchersCompare

[ Source](https://github.com/vjeantet/silex-simple-rest-swagger)[ Packagist](https://packagist.org/packages/vjeantet/silex-simple-rest-swagger)[ Docs](http://github.com/vjeantet/silex-simple-rest)[ RSS](/packages/vjeantet-silex-simple-rest-swagger/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (9)Versions (7)Used By (0)

Silex Simple REST with its auto generated documentation with Swagger
====================================================================

[](#silex-simple-rest-with-its-auto-generated-documentation-with-swagger)

[![License](https://camo.githubusercontent.com/0b4a079fd7d647bdb0b2652a62f293596a6e448ebbf1991490fe29781c978a20/68747470733a2f2f706f7365722e707567782e6f72672f766a65616e7465742f73696c65782d73696d706c652d726573742d737761676765722f6c6963656e73652e737667)](https://packagist.org/packages/vjeantet/silex-simple-rest-swagger)[![Latest Stable Version](https://camo.githubusercontent.com/b46a8c7eea9e2d74c7a11a62cb861ee3451ecd55574ae2a37072945f4a916a04/68747470733a2f2f706f7365722e707567782e6f72672f766a65616e7465742f73696c65782d73696d706c652d726573742d737761676765722f762f737461626c652e737667)](https://packagist.org/packages/vjeantet/silex-simple-rest-swagger)[![Dependency Status](https://camo.githubusercontent.com/f892426676ef04369f80011fad03f128e828597e22e18750358861ca1c841986/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f757365722f70726f6a656374732f3533386438393232363234386432333034353030303032632f62616467652e706e67)](https://www.versioneye.com/user/projects/538d89226248d2304500002c)[![Build Status](https://camo.githubusercontent.com/87aed9d095928e4acd4d6c9fa1f31b31b5454dfd9bc4bb8fcea4a66ce8db6319/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f766a65616e7465742f73696c65782d73696d706c652d726573742d737761676765722e706e67)](http://travis-ci.org/vjeantet/silex-simple-rest-swagger)

A simple silex skeleton application for writing RESTful API. Based on the silex-simple-rest github repo from [Alessandro Arnodo](http://alessandro.arnodo.net). silex-simple-rest-swagger is a fork, which add a swagger REST API Documentation, auto generated.

**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? From this folder run the following commands to install the php and bower dependencies, import some data, and run a local php server.

You need at least php **5.4.**\* 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 vjeantet/silex-simple-rest-swagger

```

Your api is now available at .

You can visualise your api documentation going to : [http://localhost:9001/swagger-ui//](http://localhost:9001/swagger-ui/)

- your swagger specification (json) is available at .

\####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 The api will respond to

```
GET  ->   http://localhost:9001/api/v1/notes
POST ->   http://localhost:9001/api/v1/notes
POST ->   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
curl http://localhost:9001/api/v1/notes -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"

#POST (update)
curl -X POST 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 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

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

\####Author

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

License
-------

[](#license)

see LICENSE file.

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 57.9% 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 ~56 days

Recently: every ~47 days

Total

7

Last Release

4363d ago

Major Versions

v1.0.0 → v2.0.02013-11-24

v2.1.0 → v3.0.02014-06-01

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

v3.0.0PHP &gt;=5.4.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/5ff85f9b409f8879af94add020082b56a80c89b7ca3095036aab625812f481a7?d=identicon)[vjeantet](/maintainers/vjeantet)

---

Top Contributors

[![vesparny](https://avatars.githubusercontent.com/u/82070?v=4)](https://github.com/vesparny "vesparny (22 commits)")[![vjeantet](https://avatars.githubusercontent.com/u/1162157?v=4)](https://github.com/vjeantet "vjeantet (14 commits)")[![davydhaeyer](https://avatars.githubusercontent.com/u/1764033?v=4)](https://github.com/davydhaeyer "davydhaeyer (1 commits)")[![kevich](https://avatars.githubusercontent.com/u/2560726?v=4)](https://github.com/kevich "kevich (1 commits)")

---

Tags

apiframeworkrestswaggersilex

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[vesparny/silex-simple-rest

A simple silex skeleton for rest api

3346.8k](/packages/vesparny-silex-simple-rest)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[phprest/phprest

PHP Rest Framework.

3049.3k](/packages/phprest-phprest)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

7310.3k29](/packages/open-dxp-opendxp)

PHPackages © 2026

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