2017 © Pedro Peláez
 

library framework

mvc extension to slim framework

image

nogo/framework

mvc extension to slim framework

  • Monday, April 27, 2015
  • by nogo
  • Repository
  • 1 Watchers
  • 0 Stars
  • 15 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

NoGo Framework

Why?

NoGo framwork sit on top of Slim framework to provide a MVC like structure., (*1)

Comes with

  • Configuration management
  • Controller interface
  • Twig template

Controller interface

The interface provide a enable function which loaded at application start. The controller must be define in a configuration file, to loaded automatically. This function should contain routing informations., (*2)

use Nogo\Framework\Controller;
use Slim\Slim;

class MyController implements Controller
{
    public function enable(Slim $app)
    {
        $app->get('/hello/:name', array($this, 'itemsAction'));
    }

    public function itemsAction($name)
    {
        // do something
    }
}

Your index.php

define('ROOT_DIR', realpath(dirname(__FILE__) . '/../' ));
require_once ROOT_DIR . '/vendor/autoload.php';

$bootstrap = new \Nogo\Framework\Bootstrap(new Slim\Slim());
$bootstrap
        ->configure(ROOT_DIR . '/app/config.yml')
        ->log()
        ->route()
        ->run();

The Versions

27/04 2015

dev-master

9999999-dev

mvc extension to slim framework

  Sources   Download

MIT

The Requires

 

The Development Requires