PHPackages                             ricardoper/slim3-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. ricardoper/slim3-skeleton

AbandonedArchivedLibrary[Framework](/categories/framework)

ricardoper/slim3-skeleton
=========================

PHP Slim Framework v3.5 Skeleton With Twig Views, Flash Messages, VarDumper And A Good Folder Organization

v1.3.4(6y ago)443867MITPHPPHP &gt;=5.5.0

Since Sep 12Pushed 6y ago5 watchersCompare

[ Source](https://github.com/ricardoper/slim3-skeleton)[ Packagist](https://packagist.org/packages/ricardoper/slim3-skeleton)[ Docs](https://github.com/ricardoper)[ RSS](/packages/ricardoper-slim3-skeleton/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (10)Dependencies (6)Versions (13)Used By (0)

PHP Slim Framework v3.5 Skeleton
================================

[](#php-slim-framework-v35-skeleton)

Use this skeleton application to quickly setup and start working on a new Slim Framework v3.5 application.

**NOTE**: If you want a similar skeleton for **version 4**, go to: ().

This skeleton application was built for Composer. This makes setting up a new Slim Framework v3.5 application quick and easy.

- [PSR-2](http://www.php-fig.org/psr/psr-2/ "PHP Framework Interop Group")
- [PSR-4](http://www.php-fig.org/psr/psr-4/ "PHP Framework Interop Group")
- PHP 5.5
- Namespaced

- Helpers
- Services
- Twig Views
- Flash Messages
- Symfony VarDumper
- Logging with Monolog
- Folders structure with sense
- Environment variables with Dotenv

How to install this skeleton
----------------------------

[](#how-to-install-this-skeleton)

Run this command from the directory in which you want to install your new Slim Framework v3.5 Skeleton.

```
composer create-project ricardoper/slim3-skeleton [my-app-name]
```

Replace `[my-app-name]` with the desired directory name for your new application. You'll want to:

- Point your virtual host document root to your new application's `public/` directory.
- Ensure `storage/` is web writeable.

Most relevant skeleton folders
------------------------------

[](#most-relevant-skeleton-folders)

- /app : Application code (App Namespace)
    - ./Controllers : Add your controllers here
    - ./Middlewares : Add your middlewares here
    - ./Routes : Add your routes here
    - ./Services : Add your services here
    - ./Views : Add your Twig views here
- /config : Add/modify your configurations here
- /public : Add your assets files here

Controllers methods
-------------------

[](#controllers-methods)

- getContainer() : Returns the Slim App container
- getService(string $service) : Returns service from container by name
- getRequest() : Returns HTTP Request
- getResponse() : Returns HTTP Response
- getView() : Returns Twig View
- render(string $template, array $data) : Renders Twig page stored in Views folder

Middleware methods
------------------

[](#middleware-methods)

- getContainer() : Returns the Slim App container
- getService(string $service) : Returns service from container by name

Helpers methods
---------------

[](#helpers-methods)

- d() : Symfony VarDumper and continue
- dd() : Symfony VarDumper and die
- env(string $variable, string $default) : Return environment variables with
- base\_path() : Returns base path location
- app\_path() : Returns app path location
- config\_path() : Returns config path location
- public\_path() : Returns public path location
- storage\_path() : Returns storage path location

Middlewares
-----------

[](#middlewares)

You can add as many middlewares as you want in a clean way (`/app/Middlewares`).

After add your middleware, you can enable or disable it in `config/middlewares.php` configuration file.

Routes
------

[](#routes)

You can add as many routes files as you want (`/app/Routes`), but you need to enable these files in `/apps/Routes/app.php` file.

Services
--------

[](#services)

You can add as many services as you want in a clean way (`/app/Services`).

After add your service, you can enable or disable it in `config/services.php` configuration file.

Configurations
--------------

[](#configurations)

You can add as many configurations files as you want (`/config`), but you need to enable these files in `/config/app.php` file.

Twig Globals
------------

[](#twig-globals)

flash : To get Flash Messages

Demo pages
----------

[](#demo-pages)

Try the skeleton demo pages.

#### Welcome page:

[](#welcome-page)

http(s)://virtualhost.int/

#### Hello user:

[](#hello-user)

http(s)://virtualhost.int/hello/\[name\]

**NOTE:** Replace `[name]` with the desired User name

\--

### Enjoy the simplicity :oP

[](#enjoy-the-simplicity-op)

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity65

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

Recently: every ~330 days

Total

12

Last Release

2255d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/765a863c426744d47fb2a72ba44a64078e9e946e3e8b8c21daf5da007e4a3200?d=identicon)[ricardoper](/maintainers/ricardoper)

---

Top Contributors

[![ricardoper](https://avatars.githubusercontent.com/u/5161172?v=4)](https://github.com/ricardoper "ricardoper (27 commits)")

---

Tags

phpframeworktwigslimflashSkeletonVarDumper

### Embed Badge

![Health badge](/badges/ricardoper-slim3-skeleton/health.svg)

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

###  Alternatives

[laravel/framework

The Laravel Framework.

34.8k532.1M19.5k](/packages/laravel-framework)[tempest/framework

The PHP framework that gets out of your way.

2.2k31.1k12](/packages/tempest-framework)[duxweb/dux-lite

The lightweight framework based on slim php

161.0k9](/packages/duxweb-dux-lite)[doppar/framework

The Doppar Framework

4011.2k14](/packages/doppar-framework)[hunzhiwange/framework

The QueryPHP Framework.

6315.8k1](/packages/hunzhiwange-framework)

PHPackages © 2026

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