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

ActiveLibrary[Framework](/categories/framework)

standart/slimcontroller
=======================

Controller extensions for the Slim Framework

0.3.0(12y ago)111MITPHPPHP &gt;=5.3.0

Since Aug 10Pushed 12y ago1 watchersCompare

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

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

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.

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

[](#install-via-composer)

Create a `composer.json` file

```
{
    "require": {
        "slimcontroller/slimcontroller": "dev-master"
    },
    "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

```

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

```
