PHPackages                             aurmil/slim2-skeleton - 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. aurmil/slim2-skeleton

ActiveProject[Framework](/categories/framework)

aurmil/slim2-skeleton
=====================

A Slim Framework 2 application skeleton

v1.0.8(10y ago)22221MITPHPPHP &gt;=5.5.0

Since Sep 18Pushed 10y ago1 watchersCompare

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

READMEChangelog (9)Dependencies (6)Versions (11)Used By (0)

Slim 2 Skeleton
===============

[](#slim-2-skeleton)

What's included?
----------------

[](#whats-included)

- Slim v2
- Twig v1
- Monolog v1
- Symfony Yaml Component v3

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

[](#installation)

Required: [Composer](https://getcomposer.org/doc/00-intro.md)

Run the following command, replacing **\[your-project-name\]** with the name of the folder you want to create.

```
composer create-project aurmil/slim2-skeleton [your-project-name]
```

- Create a virtual host that points to your project path **/public**
- For Apache, make sure it has **AllowOverride All** for [Slim URL rewriting](http://docs.slimframework.com/routing/rewrite/)
- Make sure **var** folder is writable by Web server

Web server choice
-----------------

[](#web-server-choice)

This skeleton includes a **.htaccess** file for Apache.

Feel free to read the [Slim documentation](http://docs.slimframework.com/routing/rewrite/) if your prefer to use another Web server like nginx.

Configuration
-------------

[](#configuration)

Application configuration is stored in **/app/config.yml** which is divided into 2 main parts: general settings and environment-specific settings.

Environment settings are grouped within sections. A section = an environment. Section name = value of **ENVIRONMENT** env variable (default = **development**).

General settings are merged with environment-specific settings. The latter ones overwrite the first ones.

### Access config in PHP code

[](#access-config-in-php-code)

In **/app/src/bootstrap.php**, the whole configuration is in the **$config** variable.

In a controller action, only the **App** section of configuration is available through **$app-&gt;config('app')**.

```
$tmp = $app->config('app')['my_custom_setting_key'];
```

### Access config in Twig template

[](#access-config-in-twig-template)

Only the **App** section of configuration is in the **config** variable.

```
{{ config.my_custom_setting_key }}
```

Application errors by email
---------------------------

[](#application-errors-by-email)

By configuring **App.errors.send\_email** and **App.errors.email**, you can enable or disable sending email with Monolog when an error occurs.

Meta tags
---------

[](#meta-tags)

Every **key: value** pair you add under **App.metas** will be output in HTML head section as a meta tag.

### Title

[](#title)

Page title is a special case. Obviously, **title** and **title\_separator** entries won't be output as meta tags like the other ones.

A page title is formed as follows:

- content of the **metaTitle** block a template child could define

```
{% block metaTitle %}my custom page title{% endblock %}
```

- if **App.metas.title** is not empty:
    - if **App.metas.title\_separator** is not empty: add the separator
    - add the config title

License
-------

[](#license)

The MIT License (MIT). Please see [License File](https://github.com/aurmil/slim2-skeleton/blob/master/LICENSE.md) for more information.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity64

Established project with proven stability

 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

Every ~23 days

Recently: every ~37 days

Total

9

Last Release

3707d ago

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

v1.0.3PHP &gt;=5.5.0

### Community

Maintainers

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

---

Top Contributors

[![aurmil](https://avatars.githubusercontent.com/u/1309545?v=4)](https://github.com/aurmil "aurmil (26 commits)")

---

Tags

frameworkslimslimphp

### Embed Badge

![Health badge](/badges/aurmil-slim2-skeleton/health.svg)

```
[![Health](https://phpackages.com/badges/aurmil-slim2-skeleton/health.svg)](https://phpackages.com/packages/aurmil-slim2-skeleton)
```

###  Alternatives

[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[slim/twig-view

Slim Framework 4 view helper built on top of the Twig 3 templating component

3708.0M210](/packages/slim-twig-view)[gotzmann/comet

Modern PHP framework for building blazing fast REST APIs and microservices

68816.2k1](/packages/gotzmann-comet)[xsanisty/slim-starter

Slim Framework in MVC environment with Eloquent as database provider and Twig as template engine

2852.1k](/packages/xsanisty-slim-starter)

PHPackages © 2026

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