PHPackages                             mareksokol/silex-bootstrap - 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. mareksokol/silex-bootstrap

ActiveProject

mareksokol/silex-bootstrap
==========================

Bootstrap for Silex based API

2.1.0(8y ago)313GPL-3.0PHPPHP &gt;=7.1.0

Since Sep 13Pushed 8y agoCompare

[ Source](https://github.com/mareksokol/silex-bootstrap)[ Packagist](https://packagist.org/packages/mareksokol/silex-bootstrap)[ RSS](/packages/mareksokol-silex-bootstrap/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (9)Versions (4)Used By (0)

Silex-bootstrap
===============

[](#silex-bootstrap)

[![Build Status](https://camo.githubusercontent.com/589cfa337c72fac797168fd0ac9e4ef3f75017b293b0ca2b8d69d0e30662a65d/68747470733a2f2f7472617669732d63692e6f72672f6d6172656b736f6b6f6c2f73696c65782d626f6f7473747261702e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/mareksokol/silex-bootstrap)

Silex-bootstrap is an already setup [Silex](http://silex.sensiolabs.org/) project dedicated for lightweight, RESTful APIs.

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

[](#installation)

To start a new project, run:

```
composer create-project mareksokol/silex-bootstrap

```

You need also to create config file in root directory:

```
cp config.php.dist config.php

```

Directory structure
-------------------

[](#directory-structure)

The directory structure is the following

```
bin/
src/
  Controller/
  Entity/
    Migrations/
    Repository/
  Service/
    Provider/
storage/
    logs/
    proxies/
tests/
web/

```

**bin/** place for all executables, eg. command line tool

**src/** is the root of application, contains application files: controllers, entities, migrations, repositories, services, providers and bootstrap file

**storage/** all static files, including application logs

**test/** contains unit tests

**web/** contains everything which is exposed - HTTP server should be configured to point this place as root

Usage
-----

[](#usage)

### Configuration

[](#configuration)

All configuration should be places in `config.php` file. To define new configuration parameters need to add definition in `App\Service\Provider\ConfigServiceProvider::$config`.

### Controllers

[](#controllers)

Controllers should inherit from `App\Controller\AbstractController` - this class implements several helper methods to simplify output from API. To register new controller need to add declaration in `App\Bootstrap::loadControllers()`.

### Routes

[](#routes)

Routes are defined in `App\Bootstrap::routes()`.

### Services

[](#services)

Services are registered via service providers in `App\Bootstrap::loadServices()`. Custom service providers should be placed in `App\Service\Provider` namespace.

### Database

[](#database)

All database mechanism is based on [Doctrine2](http://docs.doctrine-project.org/en/latest/) framework. There is dedicated namespace `App\Entity` for all doctrine classes (entities, repositories: `App\Entity\Repository` and migrations: `App\Entity\Migrations`).

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 94.1% 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 ~222 days

Total

3

Last Release

3079d ago

Major Versions

1.0.0 → 2.0.02017-08-29

PHP version history (2 changes)1.0.0PHP &gt;=7.0.0

2.0.0PHP &gt;=7.1.0

### Community

Maintainers

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

---

Top Contributors

[![mareksokol](https://avatars.githubusercontent.com/u/12409688?v=4)](https://github.com/mareksokol "mareksokol (16 commits)")[![templar1](https://avatars.githubusercontent.com/u/51470066?v=4)](https://github.com/templar1 "templar1 (1 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/mareksokol-silex-bootstrap/health.svg)

```
[![Health](https://phpackages.com/badges/mareksokol-silex-bootstrap/health.svg)](https://phpackages.com/packages/mareksokol-silex-bootstrap)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M647](/packages/sylius-sylius)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[contao/core-bundle

Contao Open Source CMS

1231.6M2.3k](/packages/contao-core-bundle)[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)[concrete5/core

Concrete core subtree split

19159.3k48](/packages/concrete5-core)

PHPackages © 2026

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