2017 © Pedro Peláez
 

library framework

Simple and flexible PHP7 MVC Framework

image

drmvc/framework

Simple and flexible PHP7 MVC Framework

  • Thursday, April 19, 2018
  • by EvilFreelancer
  • Repository
  • 2 Watchers
  • 5 Stars
  • 280 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 32 Versions
  • 13 % Grown

The README.md

Latest Stable Version Build Status Total Downloads License PHP 7 ready Code Climate Scrutinizer CQ, (*1)

DrMVC\Framework

A framework that combines some modules. necessary to create a full-fledged web application., (*2)

composer require drmvc/framework

How to use

More examples you can find here., (*3)

Example of index.php inside public_html folder:

<?php
require_once __DIR__ . '/../vendor/autoload.php';

$config = new \DrMVC\Config();
$config->load(__DIR__ . '/../app/database.php', 'database');

use \Psr\Http\Message\ServerRequestInterface as Request;
use \Psr\Http\Message\ResponseInterface as Response;

$app = new \DrMVC\App($config);
$app
    ->get('/', \MyApp\Controllers\Index::class . ':default') //-> public function action_default()
    ->get('/zzz', \MyApp\Controllers\Index::class) //-> public function action_index()
    ->get('/zzz/<action>', \MyApp\Controllers\Index::class)
    ->get('/aaa', function(Request $request, Response $response, $args) {
        print_r($args);
    });

echo $app->run();

Example of Index controller inside app/Controllers folder:

<?php

namespace MyApp\Controllers;

use \Psr\Http\Message\ServerRequestInterface as Request;
use \Psr\Http\Message\ResponseInterface as Response;

class Index
{
    public function action_index(Request $request, Response $response, $args)
    {
        $out = [
            'dummy',
            'array'
        ];

        $json = json_encode($out);
        header('Content-Type: application/json');
        $response->getBody()->write($json);
    }

    public function action_defaultRequest $request, Response $response, $args)
    {
        $out = [
            'test1',
            'test2'
        ];

        $json = json_encode($out);
        header('Content-Type: application/json');
        $response->getBody()->write($json);
    }
}

Where to get help

If you found the bug, please report about this on GitHub Issues page., (*4)

About PHP Unit Tests

First need to install all dev dependencies via composer update, then you can run tests by hands from source directory via ./vendor/bin/phpunit command., (*5)

  • DrMVC Framework
  • Slim - Is a PHP micro framework, I really like how there are implemented the PSR-4 conception.
  • SimpleMVC - it was a very exciting project, before the author renamed this to Nova
  • Phalcon - Simple and clean code of your application

The Versions

19/04 2018

dev-master

9999999-dev https://drmvc.com/

Simple and flexible PHP7 MVC Framework

  Sources   Download

MIT

The Requires

 

The Development Requires

framework php mvc php7 php5

16/04 2018
15/04 2018
31/03 2018

1.0.0

1.0.0.0

  Sources   Download

10/08 2017

2.0.3.3

2.0.3.3 https://drmvc.com/

Simple and flexible PHP MVC Framework for PHP5 and PHP7

  Sources   Download

MIT

The Requires

 

The Development Requires

framework php mvc php7 php5

15/05 2017

2.0.3.2

2.0.3.2 https://drmvc.com/

Simple and flexible PHP MVC Framework for PHP5 and PHP7

  Sources   Download

MIT

The Requires

 

The Development Requires

framework php mvc php7 php5

24/04 2017

2.0.3.1

2.0.3.1 https://drmvc.com/

Simple and flexible PHP MVC Framework for PHP5 and PHP7

  Sources   Download

MIT

The Requires

 

The Development Requires

framework php mvc php7 php5

13/04 2017

2.0.3

2.0.3.0 https://drmvc.com/

Simple and flexible PHP MVC Framework for PHP5 and PHP7

  Sources   Download

MIT

The Requires

 

The Development Requires

framework php mvc php7 php5

13/04 2017

2.0.2

2.0.2.0 https://drmvc.com/

Simple and flexible PHP MVC Framework for PHP5 and PHP7

  Sources   Download

MIT

The Requires

 

The Development Requires

framework php mvc php7 php5

10/04 2017

2.0.1

2.0.1.0 https://drmvc.com/

Simple and flexible PHP MVC Framework for PHP5 and PHP7

  Sources   Download

MIT

The Requires

 

The Development Requires

framework php mvc php7 php5

10/04 2017

2.0.0

2.0.0.0 https://drmvc.com/

Simple and flexible PHP MVC Framework for PHP5 and PHP7

  Sources   Download

MIT

The Requires

 

The Development Requires

framework php mvc php7 php5

06/04 2017

2.0.0-rc1

2.0.0.0-RC1 https://drmvc.com/

Simple and flexible PHP MVC Framework for PHP5 and PHP7

  Sources   Download

MIT

The Requires

 

framework php mvc php7 php5

24/03 2017

2.0.0-beta

2.0.0.0-beta https://drmvc.com/

Simple and flexible PHP MVC Framework for PHP5 and PHP7

  Sources   Download

MIT

The Requires

  • php ^5.5 || ^7.0

 

framework php mvc php7 php5

23/03 2017

2.0.0-alpha

2.0.0.0-alpha https://drmvc.com/

Simple and flexible PHP MVC Framework for PHP5 and PHP7

  Sources   Download

MIT

The Requires

  • php ^5.5 || ^7.0

 

framework php mvc php7 php5

27/12 2016

1.3.8

1.3.8.0 https://drmvc.com/

Simple and flexible PHP MVC Framework for PHP5 and PHP7

  Sources   Download

MIT

The Requires

  • php ^5.5 || ^7.0

 

framework php mvc php7 php5

03/12 2016

1.3.7.1

1.3.7.1 http://drmvc.com/

Simple and flexible PHP MVC Framework for PHP5 and PHP7

  Sources   Download

MIT

The Requires

  • php ^5.5 || ^7.0

 

framework php mvc php7 php5

14/11 2016

1.3.7

1.3.7.0 http://drmvc.com/

Simple and flexible PHP MVC Framework for PHP5 and PHP7

  Sources   Download

MIT

The Requires

  • php ^5.5 || ^7.0

 

framework php mvc php7 php5

04/11 2016

1.3.6.6

1.3.6.6 http://drmvc.com/

Simple and flexible PHP MVC Framework for PHP5 and PHP7

  Sources   Download

MIT

The Requires

  • php ^5.5 || ^7.0

 

framework php mvc php7 php5

18/08 2016

1.3.6.5

1.3.6.5 http://drmvc.com/

Simple and flexible PHP MVC Framework for PHP5 and PHP7

  Sources   Download

MIT

The Requires

  • php ^5.5 || ^7.0

 

framework php mvc php7 php5

15/08 2016

1.3.6.4

1.3.6.4 http://drmvc.com/

Simple and flexible PHP MVC Framework for PHP5 and PHP7

  Sources   Download

MIT

The Requires

  • php ^5.5 || ^7.0

 

framework php mvc php7 php5

01/08 2016

1.3.6.3

1.3.6.3 http://drmvc.com/

Simple and flexible PHP MVC Framework for PHP5 and PHP7

  Sources   Download

MIT

The Requires

  • php ^5.5 || ^7.0

 

framework php mvc php7 php5

13/07 2016

1.3.6.2

1.3.6.2 http://drmvc.com/

Simple and flexible PHP MVC Framework for PHP5 and PHP7

  Sources   Download

MIT

The Requires

  • php ^5.5 || ^7.0

 

framework php mvc php7 php5

11/07 2016

1.3.6

1.3.6.0 http://drmvc.com/

Simple and flexible PHP MVC Framework for PHP5 and PHP7

  Sources   Download

MIT

The Requires

  • php ^5.5 || ^7.0

 

framework php mvc php7 php5

11/07 2016

1.3.6.1

1.3.6.1 http://drmvc.com/

Simple and flexible PHP MVC Framework for PHP5 and PHP7

  Sources   Download

MIT

The Requires

  • php ^5.5 || ^7.0

 

framework php mvc php7 php5

27/06 2016

1.3.5

1.3.5.0 http://drmvc.com/

Simple and flexible PHP MVC Framework for PHP5 and PHP7

  Sources   Download

MIT

The Requires

  • php ^5.5 || ^7.0

 

framework php mvc php7 php5

22/06 2016

1.3.4

1.3.4.0 http://drmvc.com/

Framework for PHP 5.5+

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

php mvc

19/06 2016

1.3.3

1.3.3.0 http://drmvc.com/

Framework for PHP 5.5+

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

php mvc

19/06 2016

1.3.2

1.3.2.0 http://drmvc.com/

Framework for PHP 5.5+

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

php mvc

16/06 2016

1.3.1

1.3.1.0 http://drmvc.com/

Framework for PHP 5.5+

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

php mvc

13/06 2016

1.2.0

1.2.0.0 https://github.com/DrTeamRocks/drmvc-framework

Framework for PHP 5.5+

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

30/03 2016

1.1.0

1.1.0.0 https://github.com/DrTeamRocks/drmvc-framework

Framework for PHP 5.5+

  Sources   Download

MIT

The Requires

  • php >=5.5.0