2017 © Pedro Peláez
 

library mvc

Micro MVC

image

web-complete/mvc

Micro MVC

  • Monday, February 26, 2018
  • by mvkasatkin
  • Repository
  • 1 Watchers
  • 0 Stars
  • 84 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 16 Versions
  • 1 % Grown

The README.md

Micro MVC

Build Status Coverage Status Scrutinizer Code Quality Latest Stable Version License, (*1)

Example index.php, (*2)

<?php

require __DIR__ . '/../../vendor/autoload.php';

defined('ENV')
or define('ENV', in_array(@$_SERVER['REMOTE_ADDR'], ['127.0.0.1', '::1'], false) ? 'dev' : 'prod');

$config = require __DIR__ . '/../../admin/config/config.php';
$application = new \WebComplete\mvc\Application($config);
$front = $application->getContainer()->get(\WebComplete\mvc\front\FrontController::class);
$front->dispatch()->send();

Example config.php, (*3)

<?php

return [
    'aliases' => [
        '@app' => \dirname(__DIR__ . '/../app'),
        '@web' => \dirname(__DIR__ . '/../web'),
    ],
    'routes' => [
        ['GET', '/post/list', [\app\controllers\PostController::class, 'actionList']],
        ['POST', '/post/update', [\app\controllers\PostController::class, 'actionUpdate']],
    ],
    'cubesLocations' => [
        '@app/cubes',
    ],
    'definitions' => [
        'errorController' => \DI\object(\app\controllers\ErrorController::class),
    ]
];

Example controller.php, (*4)

<?php

namespace app\controllers;

class SomeController extends AbstractController
{

    protected $layout = '@app/views/layouts/main.php';

    public function index()
    {
        return $this->responseHtml('@app/views/some/index.php', ['name' => 'World']);
    }
}

The Versions

26/02 2018

dev-master

9999999-dev

Micro MVC

  Sources   Download

MIT

The Requires

 

The Development Requires

by Maxim Kasatkin
by Sergey Saraikin

mvc micro mvc

11/12 2017

1.1.4

1.1.4.0

Micro MVC

  Sources   Download

MIT

The Requires

 

The Development Requires

by Maxim Kasatkin
by Sergey Saraikin

mvc micro mvc

29/11 2017

1.1.3

1.1.3.0

Micro MVC

  Sources   Download

MIT

The Requires

 

The Development Requires

by Maxim Kasatkin
by Sergey Saraikin

mvc micro mvc

12/11 2017

1.1.2

1.1.2.0

Micro MVC

  Sources   Download

MIT

The Requires

 

The Development Requires

by Maxim Kasatkin
by Sergey Saraikin

mvc micro mvc

11/11 2017

1.1.1

1.1.1.0

Micro MVC

  Sources   Download

MIT

The Requires

 

The Development Requires

by Maxim Kasatkin
by Sergey Saraikin

mvc micro mvc

09/11 2017

1.1.0

1.1.0.0

Micro MVC

  Sources   Download

MIT

The Requires

 

The Development Requires

by Maxim Kasatkin
by Sergey Saraikin

mvc micro mvc

09/11 2017

1.0.9

1.0.9.0

Micro MVC

  Sources   Download

MIT

The Requires

 

The Development Requires

by Maxim Kasatkin
by Sergey Saraikin

mvc micro mvc

09/11 2017

1.0.8

1.0.8.0

Micro MVC

  Sources   Download

MIT

The Requires

 

The Development Requires

by Maxim Kasatkin
by Sergey Saraikin

mvc micro mvc

09/11 2017

1.0.7

1.0.7.0

Micro MVC

  Sources   Download

MIT

The Requires

 

The Development Requires

by Maxim Kasatkin
by Sergey Saraikin

mvc micro mvc

08/11 2017

1.0.6

1.0.6.0

Micro MVC

  Sources   Download

MIT

The Requires

 

The Development Requires

by Maxim Kasatkin
by Sergey Saraikin

mvc micro mvc

08/11 2017

1.0.5

1.0.5.0

Micro MVC

  Sources   Download

MIT

The Requires

 

The Development Requires

by Maxim Kasatkin
by Sergey Saraikin

mvc micro mvc

08/11 2017

1.0.4

1.0.4.0

Micro MVC

  Sources   Download

MIT

The Requires

 

The Development Requires

by Maxim Kasatkin
by Sergey Saraikin

mvc micro mvc

07/11 2017

1.0.3

1.0.3.0

Micro MVC

  Sources   Download

MIT

The Requires

 

The Development Requires

by Maxim Kasatkin
by Sergey Saraikin

mvc micro mvc

12/10 2017

1.0.2

1.0.2.0

Micro MVC

  Sources   Download

MIT

The Requires

 

The Development Requires

by Maxim Kasatkin
by Sergey Saraikin

mvc micro mvc

12/10 2017

1.0.1

1.0.1.0

Micro MVC

  Sources   Download

MIT

The Requires

 

The Development Requires

by Maxim Kasatkin
by Sergey Saraikin

mvc micro mvc

12/10 2017

1.0.0

1.0.0.0

Micro MVC

  Sources   Download

MIT

The Requires

 

The Development Requires

by Maxim Kasatkin
by Sergey Saraikin

mvc micro mvc