tyurderi/slim-mvc

This package is abandoned and no longer maintained. No replacement package was suggested.

1.1.6 2016-08-12 12:44 UTC

This package is not auto-updated.

Last update: 2018-07-25 20:09:21 UTC


README

Slim MVC is a simple and lightweight mvc pattern based on Slim-PHP

Installation

$ composer require tyurderi/slim-mvc "^1.1.4"

Usage

The basic usage is the same as the original.

<?php

require 'vendor/autoload.php';

$app = new Slim\Mvc\App();

$app->get('/hello/{name}', function ($request, $response, $args) {
    $response->write("Hello, " . $args['name']);
    return $response;
});

$app->run();

See example/index.php and example2/index.php for more documentation. A full documentation is following soon.

License

MIT