PHPackages                             ivoba/superleansilexplate - 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. ivoba/superleansilexplate

AbandonedArchivedSilex-starter[Framework](/categories/framework)

ivoba/superleansilexplate
=========================

Superleansilexplate

3.2.0(9y ago)60507MITPHPPHP &gt;=5.5

Since Jul 2Pushed 3y ago3 watchersCompare

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

READMEChangelog (5)Dependencies (13)Versions (12)Used By (0)

Superlean Silex Starterplate
============================

[](#superlean-silex-starterplate)

As Silex is end of life this boilerplate is abandoned!
------------------------------------------------------

[](#as-silex-is-end-of-life-this-boilerplate-is-abandoned)

[![Build Status](https://camo.githubusercontent.com/db3c17c39685b4cdfcb798ae682159f665e2f16c83909525600a85d5caf59556/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f69766f62612f73757065726c65616e73696c6578706c6174652e706e673f6272616e63683d6d6173746572)](http://travis-ci.org/ivoba/superleansilexplate)

This project is supposed to be a lean starterkit for your Silex app.
Its superlean, so basically only essential things are included.

If you need full power try:

It aims mainly at simple applications that need routing and just some additional logic.
F.e. its a good container for javascript driven apps that get their data through API calls.

It provides:

1. Web infrastructure

- Skeleton CSS ()
- Bower
- Twig
- HttpCache

2. REST Api infrastructure
3. Console infrastructure
4. Misc

- phpdotenv ()
- symfony vardumper ()
- stop dumper ()
- symfony errors

Install
-------

[](#install)

Via composer create-project

```
composer create-project -s dev ivoba/superleansilexplate PATH/TO/YOUR/APP 2.*
cd PATH/TO/YOUR/APP

```

If you want to base your app on this starter i recommend to do the following after create-project.

- remove .git and init your own git (you should be prompted for this by composer already)
- remove composer.lock from .gitignore, so you can store your dependency lock
- you might want to replace the namespace from "Superleansilexplate" to something more custom

Requirements
------------

[](#requirements)

- bower, composer will call bower install

Usage
=====

[](#usage)

Api and web are designed to run on their own resp. subdomains with their resp starting point in /web. If you want to only have one starting point copy this to web.php:

```
$api = require __DIR__ . '/Controller/api.php';
$app->mount('/api', $api);

```

Config
------

[](#config)

In dev environment we use dotenv for configuration, so you can use a .env file in the project root to mimic Env vars.

Templates
---------

[](#templates)

Start hacking in resources/views/\*.twig

Controller
----------

[](#controller)

Start hacking in src/Controllers/\*.php

Provider
--------

[](#provider)

Add provider in src/app.php

Cli Commands
------------

[](#cli-commands)

Create cli commands in src/Command and
register them in src/cli.php

Run
===

[](#run)

Run it with the php integrated webserver: [http://silex.sensiolabs.org/doc/web\_servers.html](http://silex.sensiolabs.org/doc/web_servers.html)
or create a apache / nginx vhost.

Run Web
-------

[](#run-web)

```
 php console server:run

 # in prod env
 php console server:run -e prod

```

and open

Run Api
-------

[](#run-api)

```
 php console server:run -i api

```

and open

Run Cli
-------

[](#run-cli)

```
SILEX_ENV=dev php -d variables_order=EGPCS console silex:hello-world
# for cache clear
php console cache:clear

```

Tests
-----

[](#tests)

`vendor/bin/phpunit`

Heroku
------

[](#heroku)

Superleansilexplate is [heroku](https://heroku.com) ready.

Because we utilize bower, you will need to run multipacks while creating your heroku app:

```
heroku create --buildpack https://github.com/heroku/heroku-buildpack-multi

```

Then just initialize your heroku app as stated in the docs and push it:

```
git push heroku master

```

Docker
------

[](#docker)

A docker setup for apache with php7 is provided.

For using docker in dev environments run docker-compose and check on :

```
docker-compose up

```

For a production build run:

docker build -t superleansilexplate -f docker/apache-php7-prod/Dockerfile . docker run -it --rm -p 8088:80 --env SILEX\_ENV=prod --name run-superleansilexplate superleansilexplate

TODO:
-----

[](#todo)

- yeoman setup with grunt/gulp usage
- scrutinizr

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 98.6% 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 ~131 days

Recently: every ~95 days

Total

9

Last Release

3645d ago

Major Versions

0.0.1 → 1.x-dev2013-07-02

v1.0.0 → 2.0.02015-02-18

2.2.0 → 3.0.02016-01-25

PHP version history (3 changes)0.0.1PHP &gt;=5.3.2

2.0.0PHP &gt;=5.4

3.0.0PHP &gt;=5.5

### Community

Maintainers

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

---

Top Contributors

[![ivoba](https://avatars.githubusercontent.com/u/471254?v=4)](https://github.com/ivoba "ivoba (69 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")

---

Tags

silex

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ivoba-superleansilexplate/health.svg)

```
[![Health](https://phpackages.com/badges/ivoba-superleansilexplate/health.svg)](https://phpackages.com/packages/ivoba-superleansilexplate)
```

###  Alternatives

[laravel/framework

The Laravel Framework.

34.6k509.9M17.0k](/packages/laravel-framework)[symfony/framework-bundle

Provides a tight integration between Symfony components and the Symfony full-stack framework

3.6k235.4M9.7k](/packages/symfony-framework-bundle)[shopware/platform

The Shopware e-commerce core

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

Drupal is an open source content management platform powering millions of websites and applications.

19462.3M1.3k](/packages/drupal-core)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)

PHPackages © 2026

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