PHPackages                             maer/slim-app-template - 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. [Templating &amp; Views](/categories/templating)
4. /
5. maer/slim-app-template

ActiveLibrary[Templating &amp; Views](/categories/templating)

maer/slim-app-template
======================

Simple application folder structure and bootstrapping for quickly getting started with Slim framework

1.1.0(11y ago)140MITPHPPHP &gt;=5.4.0

Since Oct 16Pushed 10y ago1 watchersCompare

[ Source](https://github.com/magnus-eriksson/slim-app-template)[ Packagist](https://packagist.org/packages/maer/slim-app-template)[ RSS](/packages/maer-slim-app-template/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (2)Versions (4)Used By (0)

Slim Application Template
=========================

[](#slim-application-template)

Simple application folder structure and bootstrapping for quickly getting started with [Slim framework](http://www.slimframework.com/).

### Requirements

[](#requirements)

- php 5.4+
- [Composer](http://getcomposer.org)

### Installation

[](#installation)

```
$ composer create-project maer/slim-app-template

```

### Setup

[](#setup)

There are two config files:

- `app/config.global.php` - Here you can see and change all default config parameters for Slim. This file will be sent to Slim on instantiation as the config file. So this is basically where you configure Slim.
- `app/config.env.php` - If you want to change some parameters depending on the environment/server, you can override those parameters here. You should probably add this file to .gitignore so different developers/servers can have their own settings.

I've added the Illuminate\\Container to this package to be able to handle dependency injection.

There is also a file called app/start.php which is included right before the routes are called. This would be a good place to register classes for dependency injection and bootstrap other packages you're using.

To get the Slim instance, use the helper `slim()`.

### File structure

[](#file-structure)

```
app/
    Controllers/
    templates/
    config.env.php
    config.global.php
    routes.php
    start.php
 helpers/
    core.php
    misc.php
idefix/
    App.php
public/
    .htaccess
    index.php

```

### Conclusion

[](#conclusion)

This is by no means any "best-practice" structure. I made it to be able to knock out small apps using Slim quickly, and according to the DRY principle, this seemed like a good idea. To see the the order of things, look at the bootstrap.php-file.

Enjoy and happy coding!

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

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 ~131 days

Total

2

Last Release

4146d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1ada6171adca1bf89432dd54fff188ef3d890a71734278bd06b54487f45b5695?d=identicon)[maer](/maintainers/maer)

---

Top Contributors

[![magnus-eriksson](https://avatars.githubusercontent.com/u/3640297?v=4)](https://github.com/magnus-eriksson "magnus-eriksson (8 commits)")

---

Tags

slimtemplate

### Embed Badge

![Health badge](/badges/maer-slim-app-template/health.svg)

```
[![Health](https://phpackages.com/badges/maer-slim-app-template/health.svg)](https://phpackages.com/packages/maer-slim-app-template)
```

###  Alternatives

[illuminate/view

The Illuminate View package.

13047.0M2.2k](/packages/illuminate-view)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9762.4M130](/packages/roots-acorn)[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

45444.2k1](/packages/pressbooks-pressbooks)[petebrowne/slim-layout-view

A Custom View supporting Layouts for the Slim Framework.

3618.1k](/packages/petebrowne-slim-layout-view)

PHPackages © 2026

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