PHPackages                             awurth/slim-base - 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. awurth/slim-base

ActiveLibrary[Framework](/categories/framework)

awurth/slim-base
================

Slim PHP Micro-Framework skeleton

5.0.1(6y ago)6761726[1 PRs](https://github.com/awurth/Slim/pulls)MITPHPPHP ^7.0

Since Oct 16Pushed 6y ago5 watchersCompare

[ Source](https://github.com/awurth/Slim)[ Packagist](https://packagist.org/packages/awurth/slim-base)[ Docs](https://github.com/awurth/Slim)[ RSS](/packages/awurth-slim-base/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (1)Dependencies (17)Versions (44)Used By (0)

Slim 3 application skeleton
===========================

[](#slim-3-application-skeleton)

[![SensioLabsInsight](https://camo.githubusercontent.com/14c7e23bb0695db078d0251e21b05e3e63a3ebc7d50ad9fd8546ccb4c1ff7ce2/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f32393763653265342d313636642d343564352d386431312d6165303635316138633761632f6d696e692e706e67)](https://insight.sensiolabs.com/projects/297ce2e4-166d-45d5-8d11-ae0651a8c7ac) [![Scrutinizer Code Quality](https://camo.githubusercontent.com/edf7bbd2565c45bc3038c710db5b25ae1f3bf160b94624c6c478fd75d07ee912/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6177757274682f536c696d2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/awurth/Slim/?branch=master)

This is an app skeleton for the Slim PHP Micro-Framework to get started quickly

Features
--------

[](#features)

- [Eloquent ORM](https://github.com/illuminate/database)
- Flash messages ([Slim Flash](https://github.com/slimphp/Slim-Flash))
- CSRF protection ([Slim Csrf](https://github.com/slimphp/Slim-Csrf)) with fields rendering with a twig function
- Authentication ([Sentinel](https://github.com/cartalyst/sentinel))
- Validation ([Respect](https://github.com/Respect/Validation) + [Slim Validation](https://github.com/awurth/slim-validation))
- Twig templating engine [Slim Twig View](https://github.com/slimphp/Twig-View) with cache and debug
- CSS Framework [Bootstrap 4](https://github.com/twbs/bootstrap)
- [Webpack](https://webpack.js.org) [Encore](https://symfony.com/doc/current/frontend.html#webpack-encore) for *SASS* and *JS* files compilation and minification
- Helpers for assets management, redirections, ...
- Logs ([Monolog](https://github.com/Seldaek/monolog))
- Dotenv configuration
- Console commands for updating the database schema or creating users
- Functionnal tests base ([PHPUnit](https://github.com/sebastianbergmann/phpunit))

For more information, check out the project's [wiki](https://github.com/awurth/Slim/wiki).

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

[](#installation)

### Create the project using Composer

[](#create-the-project-using-composer)

```
$ composer create-project awurth/slim-base [project-name]
```

### Setup environment variables

[](#setup-environment-variables)

Copy `.env` to a `.env.local` file and change the values to your needs. This file is ignored by Git so all developers working on the project can have their own configuration.

### Download client-side libraries

[](#download-client-side-libraries)

```
$ yarn
```

or if you prefer to use npm

```
$ npm install
```

### Webpack

[](#webpack)

This skeleton uses Webpack to manage assets. The CSS and Javascript files are located in `assets/`, so you have to use Webpack after creating your project to generate the minified files in `public/`, which will be ignored by Git.

#### Generate assets

[](#generate-assets)

If you just want to generate the default CSS and JS that comes with this skeleton, run the following command

```
$ yarn build
```

or

```
$ npm run build
```

If you want to run a watcher and begin coding

```
$ yarn watch
```

### Setup cache files permissions

[](#setup-cache-files-permissions)

The skeleton uses a cache system for Twig templates and the Monolog library for logging, so you have to make sure that PHP has write permissions on the `var/cache/` and `var/log/` directories.

### Update your database schema

[](#update-your-database-schema)

First, create a database with the name you set in the `.env*` file. Then you can create the tables by running this command:

```
$ php bin/console db
```

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity71

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

Recently: every ~168 days

Total

43

Last Release

2367d ago

Major Versions

1.5.4 → 2.0.02017-01-18

2.4.1 → 3.0.02017-10-14

3.2.1 → 4.0.02017-12-09

4.2.0 → 5.0.02019-09-01

### Community

Maintainers

![](https://www.gravatar.com/avatar/f013869636e144de4543214232772d5e07d399ec61df8a586ba3e0df30a5b193?d=identicon)[Alexis Wurth](/maintainers/Alexis%20Wurth)

---

Top Contributors

[![awurth](https://avatars.githubusercontent.com/u/10026857?v=4)](https://github.com/awurth "awurth (264 commits)")

---

Tags

boilerplateeloquentframeworkmonologphpskeletonslimstartertwigframeworktwigslimeloquentboilerplatebootstrapSkeleton

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/awurth-slim-base/health.svg)

```
[![Health](https://phpackages.com/badges/awurth-slim-base/health.svg)](https://phpackages.com/packages/awurth-slim-base)
```

###  Alternatives

[laravel/framework

The Laravel Framework.

34.8k532.1M19.4k](/packages/laravel-framework)[shopware/platform

The Shopware e-commerce core

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

Shopware platform is the core for all Shopware ecommerce products.

585.4M524](/packages/shopware-core)[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[duxweb/dux-lite

The lightweight framework based on slim php

161.0k9](/packages/duxweb-dux-lite)

PHPackages © 2026

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