PHPackages                             aalfiann/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. [HTTP &amp; Networking](/categories/http)
4. /
5. aalfiann/slim-skeleton

ActiveFramework[HTTP &amp; Networking](/categories/http)

aalfiann/slim-skeleton
======================

This is a very simple, fast and secure of slim-skeleton.

1.6.2(6y ago)23801MITPHPPHP &gt;=5.5

Since Sep 23Pushed 6y ago2 watchersCompare

[ Source](https://github.com/aalfiann/slim-skeleton)[ Packagist](https://packagist.org/packages/aalfiann/slim-skeleton)[ RSS](/packages/aalfiann-slim-skeleton/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (7)Versions (15)Used By (0)

Slim-Skeleton
=============

[](#slim-skeleton)

[![Version](https://camo.githubusercontent.com/84006c004b7b6b1368db326a6158c1fe65fd0cd192a3ae441ece51c231c7d1f8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f61616c6669616e6e2f736c696d2d736b656c65746f6e)](https://packagist.org/packages/aalfiann/slim-skeleton)[![Total Downloads](https://camo.githubusercontent.com/166f32f7b02cf11aa19b2129db2e890eab8e5de48a0936b5d5bf476af90cd48c/68747470733a2f2f706f7365722e707567782e6f72672f61616c6669616e6e2f736c696d2d736b656c65746f6e2f646f776e6c6f616473)](https://packagist.org/packages/aalfiann/slim-skeleton)[![License](https://camo.githubusercontent.com/bd09fe0735f382b9cda98b24422c1bff5b999901f52970b4841090a6fdfe6d00/68747470733a2f2f706f7365722e707567782e6f72672f61616c6669616e6e2f736c696d2d736b656c65746f6e2f6c6963656e7365)](https://github.com/aalfiann/slim-skeleton/blob/HEAD/LICENSE.md)

This is a very simple, fast and secure of slim-skeleton.
This skeleton is secured with CSRF, fast, simple and modular architecture.

Dependencies
------------

[](#dependencies)

- CSRF Guard &gt;&gt; slim/csrf
- TWIG Template &gt;&gt; slim/twig-view
- HTTP Cache &gt;&gt; slim/http-cache
- Flash Messages &gt;&gt; slim/flash
- Logger &gt;&gt; monolog/monolog

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

[](#installation)

Install this package via [Composer](https://getcomposer.org/).

```
composer create-project aalfiann/slim-skeleton [my-app-name]

```

Getting Started
---------------

[](#getting-started)

### How to create new application

[](#how-to-create-new-application)

- Go to modules directory
- Create new folder `my-app`
- To create routes, you should follow this pattern &gt;&gt; `*.router.php`
- Put the view template to `templates/default` directory
- Done

### How to activate CSRF

[](#how-to-activate-csrf)

CSRF is already integrated in this skeleton :

1. Create same two routes, GET and POST

```
use \Psr\Http\Message\ServerRequestInterface as Request;
use \Psr\Http\Message\ResponseInterface as Response;

// load contact page
$app->get('/contact', function (Request $request, Response $response) {
    $body = $response->getBody();
    return $this->view->render($response, "contact.twig", []);
})->setName("/contact")->add($container->get('csrf'));

// send message
$app->post('/contact', function (Request $request, Response $response) {
    $body = $response->getBody();
    return $this->view->render($response, "contact.twig", []);
})->add($container->get('csrf'));

```

2. Put hidden input value in contact form HTML

```

```

3. Done

**Note:**

- Documentation about `Slim` is available on [slimframework.com](http://slimframework.com).
- This is a forked version from the original [slimphp/Slim-Skeleton](https://github.com/slimphp/Slim-Skeleton).
- There is [swift](https://github.com/aalfiann/swift) project based from this skeleton which is already integrated with Flat-File, User Session, Authorization, Validation, etc.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community9

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

Recently: every ~135 days

Total

14

Last Release

2236d ago

### Community

Maintainers

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

---

Top Contributors

[![aalfiann](https://avatars.githubusercontent.com/u/9458941?v=4)](https://github.com/aalfiann "aalfiann (24 commits)")

---

Tags

microframeworkskeleton-frameworkslim-frameworkrestrouterpsr7psr11microframework

### Embed Badge

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

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

PHPackages © 2026

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