PHPackages                             oanhnn/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. [Testing &amp; Quality](/categories/testing)
4. /
5. oanhnn/slim-skeleton

ActiveApplication[Testing &amp; Quality](/categories/testing)

oanhnn/slim-skeleton
====================

A skeleton for Slim framework

v3.1.0(9y ago)182518[1 PRs](https://github.com/oanhnn/slim-skeleton/pulls)MITPHPPHP &gt;=5.5.0

Since Jun 23Pushed 3y ago3 watchersCompare

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

READMEChangelog (2)Dependencies (7)Versions (5)Used By (0)

Slim Skeleton
=============

[](#slim-skeleton)

[![Build Status](https://camo.githubusercontent.com/a62275736b5ed13d23d82409d8499b2a0e51b669c1156cfa6eebf3c5dd33e24a/68747470733a2f2f7472617669732d63692e6f72672f6f616e686e6e2f736c696d2d736b656c65746f6e2e7376673f6272616e63683d332e78)](https://travis-ci.org/oanhnn/slim-skeleton)[![Latest Stable Version](https://camo.githubusercontent.com/7533944afc7c4b72fc9391949268d27648b519903c7bf4fd12d9d5b7f3730898/68747470733a2f2f706f7365722e707567782e6f72672f6f616e686e6e2f736c696d2d736b656c65746f6e2f762f737461626c65)](https://packagist.org/packages/oanhnn/slim-skeleton)[![Total Downloads](https://camo.githubusercontent.com/8898a0e4525f8cf4342cca8aa9446c58bb9e4c85f41dde28072df60cbc432718/68747470733a2f2f706f7365722e707567782e6f72672f6f616e686e6e2f736c696d2d736b656c65746f6e2f646f776e6c6f616473)](https://packagist.org/packages/oanhnn/slim-skeleton)[![License](https://camo.githubusercontent.com/b5f9756283c36810599eb4f4e64c838f3563085f152b675520f94bbdbf523700/68747470733a2f2f706f7365722e707567782e6f72672f6f616e686e6e2f736c696d2d736b656c65746f6e2f6c6963656e7365)](https://packagist.org/packages/oanhnn/slim-skeleton)

[![Join the chat at https://gitter.im/oanhnn/slim-skeleton](https://camo.githubusercontent.com/abe08b740a4156153736f791393ec4da6619c4be73212e75769f52edacc0e2b5/68747470733a2f2f6261646765732e6769747465722e696d2f4a6f696e253230436861742e737667)](https://gitter.im/oanhnn/slim-skeleton?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

A skeleton for [Slim Framework v3](http://slimframework.com/) following MVC pattern.

Main features
-------------

[](#main-features)

- Support logging follow [PSR-3](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-3-logger-interface.md) with [Monolog](https://github.com/Seldaek/monolog)
- Support template engines: PHP view, Twig (default PHP view)
- Support database accessing with [Doctrine DBAL](https://github.com/doctrine/dbal), [CakePHP Database](https://github.com/cakephp/database) (support MySql, Postgresql, SQLite, ...)
- Support middlewares: Basic &amp; Digest Authentication
- Support providers, easy to integrate with `slim/http-cache`, `slim/csrf`, `slim/flash`
- Support making database test and integration test with [PHPUnit](https://phpunit.de/)
- Support coding style check with [PHPCS](https://github.com/squizlabs/PHP_CodeSniffer)
- Support auto deploy with [Deployer](https://deployer.org)
- Support using [Gulp](http://gulpjs.com/) task to compile SASS, ES6, CoffeeScript, ...

#### Directories structure

[](#directories-structure)

```
path/to/project
|-- app
|   |-- assets
|   |-- config
|   |-- lang
|   `-- templates
|-- public
|-- src
|-- tests
|-- tmp
|   |-- cache
|   `-- logs
`-- vendor

```

Requirements
------------

[](#requirements)

- PHP 5.5+
- \[Composer\]\[compoer\]
- [npm](https://docs.npmjs.com/getting-started/installing-node) (If using gulp to build assets)

Usage
-----

[](#usage)

#### Create project

[](#create-project)

Using `composer` to create new project:

```
$ composer create-project oanhnn/slim-skeleton path/to/project --prefer-dist
```

#### Run PHP built-in server

[](#run-php-built-in-server)

Run a built-in server on 0.0.0.0:8888

```
$ php -S 0.0.0.0:8888 -t public public/index.php
```

Open web browser with address

#### Check coding style and test

[](#check-coding-style-and-test)

```
$ ./vendor/bin/phpcs
$ ./vendor/bin/phpunit
```

#### Build assets with gulp, npm

[](#build-assets-with-gulp-npm)

You can use Gulp to compile SASS, ES6, CoffeeScript, ...

```
$ npm install
$ npm run-script build
```

#### Run a task with gulp

[](#run-a-task-with-gulp)

```
$ node_modules/.bin/gulp
```

#### Deploy project

[](#deploy-project)

You can use Deployer to deploy project.
Copy and edit server's information from `deploy.php.dist` file to `deploy.php` file.
After that, you can run:

```
$ composer require deployer/deployer:^3.3.0 --dev
$ ./vendor/bin/dep
```

See an example in [here](https://github.com/oanhnn/deployer-example).

Changelog
---------

[](#changelog)

See all change logs in [CHANGELOG.md](CHANGELOG.md)

Contributing
------------

[](#contributing)

All code contributions must go through a pull request and approved by a core developer before being merged. This is to ensure proper review of all the code.

Fork the project, create a feature branch, and send a pull request.

To ensure a consistent code base, you should make sure the code follows the [PSR-2](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md).

If you would like to help take a look at the [list of issues](issues).

License
-------

[](#license)

This project is released under the MIT License.
Copyright © 2013-2016 Oanh Nguyen.
Please see [License File](LICENSE.md) for more information.

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 90.9% 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 ~851 days

Total

3

Last Release

1956d ago

PHP version history (2 changes)v3.0.0PHP &gt;=5.5.0

3.x-devPHP &gt;=7.0

### Community

Maintainers

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

---

Top Contributors

[![oanhnn](https://avatars.githubusercontent.com/u/1757120?v=4)](https://github.com/oanhnn "oanhnn (10 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")

---

Tags

gulpmonologphpcsphpunitpsrskeletonslim-framework

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[phpro/grumphp

A composer plugin that enables source code quality checks.

4.3k16.3M977](/packages/phpro-grumphp)[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.6k38.2k](/packages/matomo-matomo)[pimcore/pimcore

Content &amp; Product Management Framework (CMS/PIM/E-Commerce)

3.8k3.8M464](/packages/pimcore-pimcore)[flow-php/flow

PHP ETL - Extract Transform Load - Data processing framework

84735.1k](/packages/flow-php-flow)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.4M524](/packages/shopware-core)[magento/magento2-functional-testing-framework

Magento2 Functional Testing Framework

15311.8M36](/packages/magento-magento2-functional-testing-framework)

PHPackages © 2026

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