PHPackages                             phpdev-uk/slim-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. phpdev-uk/slim-skeleton

ActiveProject

phpdev-uk/slim-skeleton
=======================

Skeleton Slim 4 application

6301[6 issues](https://github.com/phpdev-uk/slim-skeleton/issues)PHP

Since May 9Pushed 5mo ago1 watchersCompare

[ Source](https://github.com/phpdev-uk/slim-skeleton)[ Packagist](https://packagist.org/packages/phpdev-uk/slim-skeleton)[ RSS](/packages/phpdev-uk-slim-skeleton/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependenciesVersions (2)Used By (0)

slim-skeleton
=============

[](#slim-skeleton)

Skeleton Slim 4 application for new projects.

This package makes it quicker to bootstrap a new Slim 4 application with common dependencies and a local development environment using Docker or Podman. It is only intended to be used as an initial bootstrap - after that you should commit your changes to your own Git repository and manage your Composer dependencies.

If you are using Visual Studio Code, there are also some settings to integrate Xdebug and to ignore third party libraries (`vendor/`) and the database file.

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

[](#installation)

Create a project via Composer (do **not** use `composer require` as this will add `phpdev-uk/slim-skeleton` as a dependency):

`composer create-project phpdev-uk/slim-skeleton:dev-main my-app`

Set your PHP version in `composer.json`.

Change any image versions in `docker-compose.yml` to match your production environment.

Make any changes to `.env`.

Start Docker:

`docker compose up`

Or Podman:

`podman compose up`

Visit  in your browser.

Assumptions
-----------

[](#assumptions)

This skeleton application makes the following assumptions about your application environment:

- PHP 8.3
- Single MariaDB database
- Debian Bullseye (latest stable release)

If you need PHP 7.4, please use the php74 branch. However, this is not maintained and will not receive updates.

Included libraries
------------------

[](#included-libraries)

Although you do not have to use them, this package includes the following libraries:

- Doctrine ORM: Create PHP classes to map to your database structure.
- Doctrine Migrations: Manage changes to your database schemas.

If you are using a database in your application, the above libraries are likely to make your life much easier.

Middleware
----------

[](#middleware)

This skeleton repository comes with an `AuthRequired` middleware class, which can be used to place routes behind an authentication wall. You will need to either make sure that your authentication code sets `$_SESSION['logged_in']` to `true` when the user is authenticated, or edit the class to use your authentication process.

The setup assumes that you are using sessions for authentication. In order for `session_start`to be called, you must enable CSRF protection in your `.env` file (it is enabled by default). Authentication without CSRF is **not** recommended.

Flash messages
--------------

[](#flash-messages)

A very simple flash messages implementation is included. Anything added to `$_SESSION['flash']`will be passed into the Twig template, and the flash messages will be reset for the next request.

Sites using this package
------------------------

[](#sites-using-this-package)

Sites started using this package include:

- [Pick a Date](https://pickadate.uk)
- [Viking Mind](https://vikingmind.uk)

Plus some commercial projects which are proprietary and confidential.

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance28

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity20

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/433556?v=4)[Paul Waring](/maintainers/pwaring)[@pwaring](https://github.com/pwaring)

---

Top Contributors

[![pwaring](https://avatars.githubusercontent.com/u/433556?v=4)](https://github.com/pwaring "pwaring (191 commits)")

---

Tags

phpslim-framework

### Embed Badge

![Health badge](/badges/phpdev-uk-slim-skeleton/health.svg)

```
[![Health](https://phpackages.com/badges/phpdev-uk-slim-skeleton/health.svg)](https://phpackages.com/packages/phpdev-uk-slim-skeleton)
```

PHPackages © 2026

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