PHPackages                             willgarcia/silex-api-boilerplate - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. willgarcia/silex-api-boilerplate

ActiveLibrary[HTTP &amp; Networking](/categories/http)

willgarcia/silex-api-boilerplate
================================

Silex application for getting started with your API.

0.1.0(11y ago)3393MITPHPPHP &gt;=5.4

Since Aug 4Pushed 11y ago1 watchersCompare

[ Source](https://github.com/willgarcia/silex-api-boilerplate)[ Packagist](https://packagist.org/packages/willgarcia/silex-api-boilerplate)[ RSS](/packages/willgarcia-silex-api-boilerplate/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)Dependencies (16)Versions (2)Used By (0)

README
======

[](#readme)

[![Build Status](https://camo.githubusercontent.com/b5deea1683d194ad2c1e4a86000e01a398a32474f30896e1ea78091ce2836d7b/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f77696c6c6761726369612f73696c65782d6170692d626f696c6572706c6174652e706e67)](http://travis-ci.org/willgarcia/silex-api-boilerplate) [![Dependency Status](https://camo.githubusercontent.com/76c4cc3c941c76456ca3d9c40fba98131fbf57e35e81eb98685e3dd8b4463527/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f757365722f70726f6a656374732f3534336330613733623261396335363035663030303364652f62616467652e7376673f7374796c653d666c6174)](https://www.versioneye.com/user/projects/543c0a73b2a9c5605f0003de)

silex-api-boilerplate
---------------------

[](#silex-api-boilerplate)

A starting point for building your RESTful API within a Silex application.

Prerequisites
-------------

[](#prerequisites)

- PHP &gt;=5.4
- Grunt-cli &gt;= 0.1.6

Components
----------

[](#components)

This project uses the following components:

- [Silex application](http://silex.sensiolabs.org/)
- [HATEOAS API](https://github.com/willdurand/Hateoas)
- \[API key authentication\]
- [Monolog as a service provider](http://silex.sensiolabs.org/doc/providers/monolog.html)
- Functional tests with [Behat 3](https://github.com/Behat/Behat)

API
---

[](#api)

The provided API stands as an example, and supports the [HAL format](http://stateless.co/hal_specification.html).

API Endpoints (see `app/routing.php`) :

```
/api                                # API entry point               ; secured route
/api/errors                         # API errors list               ; secured route
/api/errors/{code}                  # API error description         ; secured route
/api/customers                      # Customers list                ; secured route
/api/customers/{cid}                # Customer informations         ; secured route
/api/customers/{cid}/licenses       # Customer's licenses list      ; secured route
/api/customers/{cid}/licenses/{lid} # Customer license informations ; secured route

```

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

[](#installation)

```
$ composer create-project willgarcia/silex-api-boilerplate my-new-api -s dev
$ npm install
$ grunt

```

Development
-----------

[](#development)

For development purposes only, you can serve the API by starting a PHP built-in web server:

```
$ cp app/env_dev.php-dist app/env_dev.php
$ API_ENV=dev php -S 0.0.0.0:4000 web/index.php

```

See

From here, you can access to this URL: `http://localhost:4000`

Tests
-----

[](#tests)

```
$ bin/behat tests/functional/features/

```

License
-------

[](#license)

Silex-api-boilerplate is released under the MIT License. See the bundled LICENSE file for details.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity48

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

Unknown

Total

1

Last Release

4299d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/9146088?v=4)[wooshell](/maintainers/wooshell)[@wooshell](https://github.com/wooshell)

---

Top Contributors

[![willgarcia](https://avatars.githubusercontent.com/u/1169460?v=4)](https://github.com/willgarcia "willgarcia (32 commits)")

---

Tags

apirestHATEOAS

###  Code Quality

TestsBehat

### Embed Badge

![Health badge](/badges/willgarcia-silex-api-boilerplate/health.svg)

```
[![Health](https://phpackages.com/badges/willgarcia-silex-api-boilerplate/health.svg)](https://phpackages.com/packages/willgarcia-silex-api-boilerplate)
```

###  Alternatives

[cakedc/cakephp-api

Api plugin for CakePHP

61100.6k](/packages/cakedc-cakephp-api)[gointegro/hateoas-bundle

GOintegro HATEOAS Bundle

6810.6k](/packages/gointegro-hateoas-bundle)[gointegro/hateoas

GOintegro HATEOAS Lib

408.0k1](/packages/gointegro-hateoas)[huaweicloud/huaweicloud-sdk-php

Huawei Cloud SDK for PHP

1829.2k2](/packages/huaweicloud-huaweicloud-sdk-php)[jarischaefer/hal-api

Enhances your HATEOAS experience by automating common tasks.

291.4k](/packages/jarischaefer-hal-api)

PHPackages © 2026

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