PHPackages                             slimcontroller/slimcontroller - 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. slimcontroller/slimcontroller

AbandonedArchivedLibrary[Framework](/categories/framework)

slimcontroller/slimcontroller
=============================

Controller extensions for the Slim Framework

0.4.3(11y ago)17348.9k↓50%17[8 issues](https://github.com/fortrabbit/slimcontroller/issues)[2 PRs](https://github.com/fortrabbit/slimcontroller/pulls)5MITPHPPHP &gt;=5.3.0

Since Aug 10Pushed 4y ago16 watchersCompare

[ Source](https://github.com/fortrabbit/slimcontroller)[ Packagist](https://packagist.org/packages/slimcontroller/slimcontroller)[ Docs](http://github.com/fortrabbit/slimcontroller)[ RSS](/packages/slimcontroller-slimcontroller/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (7)Dependencies (3)Versions (13)Used By (5)

SlimController
==============

[](#slimcontroller)

SlimController is an extension for [the Slim Framework](http://www.slimframework.com/) providing the C of MVC.

With Slim alone, you can create great applications very, very quickly. Sometimes things get out of hand an you just need a bit more structure - or at least I do. That's what SlimController is for.

[![Latest Stable Version](https://camo.githubusercontent.com/46f989d666e11db70779019ca861635289adc04799579259086a464e359c4a5b/68747470733a2f2f706f7365722e707567782e6f72672f736c696d636f6e74726f6c6c65722f736c696d636f6e74726f6c6c65722f762f737461626c652e706e67)](https://packagist.org/packages/slimcontroller/slimcontroller)[![Total Downloads](https://camo.githubusercontent.com/20b62e88e79528eff4b384574d73b5ff9822d434e851c5f28698fefe73abb685/68747470733a2f2f706f7365722e707567782e6f72672f736c696d636f6e74726f6c6c65722f736c696d636f6e74726f6c6c65722f646f776e6c6f6164732e706e67)](https://packagist.org/packages/slimcontroller/slimcontroller)

[![Build Status](https://camo.githubusercontent.com/a965a43cf6ff49bc64721257914bddd64477c47cd76cf8afe4a93ff453782391/68747470733a2f2f7472617669732d63692e6f72672f666f72747261626269742f736c696d636f6e74726f6c6c65722e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/fortrabbit/slimcontroller)

Install via composer
====================

[](#install-via-composer)

Create a `composer.json` file

```
{
    "require": {
        "slimcontroller/slimcontroller": "0.4.3"
    },
    "autoload": {
        "psr-0": {
            "MyApp": "src/"
        }
    }
}

```

Run installation

```
composer.phar install --dev

```

Mini HowTo
==========

[](#mini-howto)

If you know how [Slim works](http://docs.slimframework.com/), using SlimController shouldn't be a big deal.

Example Structure
-----------------

[](#example-structure)

Setup a structure for your controller and templates (just a suggestion, do as you like):

```
mkdir -p src/MyApp/Controller templates/home

```

Controller
----------

[](#controller)

Create your first controller in `src/MyApp/Controller/Home.php`

```

```

`templates/home/hello.php`

```
Hello

```

Boostrap index.php
------------------

[](#boostrap-indexphp)

Minimal bootstrap file for this example

```
