2017 © Pedro Peláez
 

library php-mvc

A PHP micro-framework for use as a frontend and/or backend

image

carlbennett/php-mvc

A PHP micro-framework for use as a frontend and/or backend

  • Monday, May 28, 2018
  • by carlbennett
  • Repository
  • 2 Watchers
  • 2 Stars
  • 247 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 34 Versions
  • 1 % Grown

The README.md

php-mvc

Build Status, (*1)

php-mvc is a PHP standard library used with @carlbennett's projects. The aspirations of this library are for a project website to include it as middleware., (*2)

Installation

This library is available via composer from packagist., (*3)

composer require carlbennett/php-mvc
composer install

Usage

The following is an example of including this library in your project. This assumes you have already installed the library via composer., (*4)

<?php

namespace MySuperAwesomeProject;

use \CarlBennett\MVC\Libraries\GlobalErrorHandler;
use \CarlBennett\MVC\Libraries\Router;
use \CarlBennett\MVC\Libraries\Template;
use \RuntimeException;

// Can be used to route requests.

$router = new Router(
    "\\MySuperAwesomeProject\\Controllers\\",
    "\\MySuperAwesomeProject\\Views\\"
);
$router->addRoute( // URLs: /home, /home.htm, /home.html
    // pattern, model, view
    '#^/home(?:\.html?)?$#', 'Home', 'HomeHtml'
);
$router->route();
$router->send();

// Custom template engine powered by pure PHP, utilizes include() and output buffers.

$context = null; // empty context, used to pass state to template
(new Template($context, 'HelloWorld'))->render(); // prints ./src/Templates/HelloWorld.phtml to the client.

// A dynamic error handler. Prints JSON if display_errors is ON, a friendly html page if OFF.

GlobalErrorHandler::createOverrides();
throw new RuntimeException('test');

The Versions

28/05 2018

dev-master

9999999-dev https://github.com/carlbennett/php-mvc

A PHP micro-framework for use as a frontend and/or backend

  Sources   Download

AGPL-3.0

The Requires

  • ext-curl *
  • ext-http *
  • ext-json *
  • ext-mbstring *
  • ext-mcrypt *
  • ext-memcached *
  • ext-pdo *
  • php-64bit >=5.5.0

 

by Carl Bennett

api frontend php rest mvc cms backend restful management content system

28/05 2018

2.3.13

2.3.13.0 https://github.com/carlbennett/php-mvc

A PHP micro-framework for use as a frontend and/or backend

  Sources   Download

AGPL-3.0

The Requires

  • ext-curl *
  • ext-http *
  • ext-json *
  • ext-mbstring *
  • ext-mcrypt *
  • ext-memcached *
  • ext-pdo *
  • php-64bit >=5.5.0

 

by Carl Bennett

api frontend php rest mvc cms backend restful management content system

28/05 2018

2.3.12

2.3.12.0 https://github.com/carlbennett/php-mvc

A PHP micro-framework for use as a frontend and/or backend

  Sources   Download

AGPL-3.0

The Requires

  • ext-curl *
  • ext-http *
  • ext-json *
  • ext-mbstring *
  • ext-mcrypt *
  • ext-memcached *
  • ext-pdo *
  • php-64bit >=5.5.0

 

by Carl Bennett

api frontend php rest mvc cms backend restful management content system

27/05 2018

2.3.11

2.3.11.0 https://github.com/carlbennett/php-mvc

A PHP micro-framework for use as a frontend and/or backend

  Sources   Download

AGPL-3.0

The Requires

  • ext-curl *
  • ext-http *
  • ext-json *
  • ext-mbstring *
  • ext-mcrypt *
  • ext-memcached *
  • ext-pdo *
  • php-64bit >=5.5.0

 

by Carl Bennett

api frontend php rest mvc cms backend restful management content system

31/03 2018

1.0.0

1.0.0.0

  Sources   Download

18/03 2018

2.3.10

2.3.10.0 https://github.com/carlbennett/php-mvc

A PHP micro-framework for use as a frontend and/or backend

  Sources   Download

AGPL-3.0

The Requires

  • ext-curl *
  • ext-http *
  • ext-json *
  • ext-mbstring *
  • ext-mcrypt *
  • ext-memcached *
  • ext-pdo *
  • php-64bit >=5.5.0

 

by Carl Bennett

api frontend php rest mvc cms backend restful management content system

18/03 2018

2.3.9

2.3.9.0 https://github.com/carlbennett/php-mvc

A PHP micro-framework for use as a frontend and/or backend

  Sources   Download

AGPL-3.0

The Requires

  • ext-curl *
  • ext-http *
  • ext-json *
  • ext-mbstring *
  • ext-mcrypt *
  • ext-memcached *
  • ext-pdo *
  • php-64bit >=5.5.0

 

by Carl Bennett

api frontend php rest mvc cms backend restful management content system

23/09 2017

2.3.8

2.3.8.0 https://github.com/carlbennett/php-mvc

A PHP micro-framework for use as a frontend and/or backend

  Sources   Download

AGPL-3.0

The Requires

  • ext-curl *
  • ext-http *
  • ext-json *
  • ext-mbstring *
  • ext-mcrypt *
  • ext-memcached *
  • ext-pdo *
  • php-64bit >=5.5.0

 

by Carl Bennett

api frontend php rest mvc cms backend restful management content system

09/04 2017

2.3.7

2.3.7.0 https://github.com/carlbennett/php-mvc

A PHP micro-framework for use as a frontend and/or backend

  Sources   Download

AGPL-3.0

The Requires

  • ext-curl *
  • ext-http *
  • ext-json *
  • ext-mbstring *
  • ext-mcrypt *
  • ext-memcached *
  • ext-pdo *
  • php-64bit >=5.5.0

 

by Carl Bennett

api frontend php rest mvc cms backend restful management content system

29/12 2016

2.3.6

2.3.6.0 https://github.com/carlbennett/php-mvc

A PHP micro-framework for use as a frontend and/or backend

  Sources   Download

AGPL-3.0

The Requires

  • ext-curl *
  • ext-http *
  • ext-json *
  • ext-mbstring *
  • ext-mcrypt *
  • ext-memcached *
  • ext-pdo *
  • php-64bit >=5.5.0

 

by Carl Bennett

api frontend php rest mvc cms backend restful management content system

29/12 2016

dev-datetime

dev-datetime https://github.com/carlbennett/php-mvc

A PHP micro-framework for use as a frontend and/or backend

  Sources   Download

AGPL-3.0

The Requires

  • ext-curl *
  • ext-http *
  • ext-json *
  • ext-mbstring *
  • ext-mcrypt *
  • ext-memcached *
  • ext-pdo *
  • php-64bit >=5.5.0

 

by Carl Bennett

api frontend php rest mvc cms backend restful management content system

04/12 2016

2.3.5

2.3.5.0 https://github.com/carlbennett/php-mvc

A PHP micro-framework for use as a frontend and/or backend

  Sources   Download

AGPL-3.0

The Requires

  • ext-curl *
  • ext-http *
  • ext-json *
  • ext-mbstring *
  • ext-mcrypt *
  • ext-memcached *
  • ext-pdo *
  • php-64bit >=5.5.0

 

by Carl Bennett

api frontend php rest mvc cms backend restful management content system

02/12 2016

2.3.4

2.3.4.0 https://github.com/carlbennett/php-mvc

A PHP micro-framework for use as a frontend and/or backend

  Sources   Download

AGPL-3.0

The Requires

  • ext-curl *
  • ext-http *
  • ext-json *
  • ext-mbstring *
  • ext-mcrypt *
  • ext-memcached *
  • ext-pdo *
  • php-64bit >=5.5.0

 

by Carl Bennett

api frontend php rest mvc cms backend restful management content system

02/12 2016

2.3.3

2.3.3.0 https://github.com/carlbennett/php-mvc

A PHP micro-framework for use as a frontend and/or backend

  Sources   Download

AGPL-3.0

The Requires

  • ext-curl *
  • ext-http *
  • ext-json *
  • ext-mbstring *
  • ext-mcrypt *
  • ext-memcached *
  • ext-pdo *
  • php-64bit >=5.5.0

 

by Carl Bennett

api frontend php rest mvc cms backend restful management content system

28/11 2016

2.3.2

2.3.2.0 https://github.com/carlbennett/php-mvc

A PHP micro-framework for use as a frontend and/or backend

  Sources   Download

AGPL-3.0

The Requires

  • ext-curl *
  • ext-http *
  • ext-json *
  • ext-mbstring *
  • ext-mcrypt *
  • ext-memcached *
  • ext-pdo *
  • php-64bit >=5.5.0

 

by Carl Bennett

api frontend php rest mvc cms backend restful management content system

28/11 2016

2.3.1

2.3.1.0 https://github.com/carlbennett/php-mvc

A PHP micro-framework for use as a frontend and/or backend

  Sources   Download

AGPL-3.0

The Requires

  • ext-curl *
  • ext-http *
  • ext-json *
  • ext-mbstring *
  • ext-mcrypt *
  • ext-memcached *
  • ext-pdo *
  • php-64bit >=5.5.0

 

by Carl Bennett

api frontend php rest mvc cms backend restful management content system

28/11 2016

2.3.0

2.3.0.0 https://github.com/carlbennett/php-mvc

A PHP micro-framework for use as a frontend and/or backend

  Sources   Download

AGPL-3.0

The Requires

  • ext-curl *
  • ext-http *
  • ext-json *
  • ext-mbstring *
  • ext-mcrypt *
  • ext-memcached *
  • ext-pdo *
  • php-64bit >=5.5.0

 

by Carl Bennett

api frontend php rest mvc cms backend restful management content system

27/11 2016

2.2.2

2.2.2.0 https://github.com/carlbennett/php-mvc

A PHP micro-framework for use as a frontend and/or backend

  Sources   Download

AGPL-3.0

The Requires

  • ext-curl *
  • ext-http *
  • ext-json *
  • ext-mbstring *
  • ext-mcrypt *
  • ext-memcached *
  • ext-pdo *
  • php-64bit >=5.5.0

 

by Carl Bennett

api frontend php rest mvc cms backend restful management content system

23/11 2016

2.2.1

2.2.1.0 https://github.com/carlbennett/php-mvc

A PHP micro-framework for use as a frontend and/or backend

  Sources   Download

AGPL-3.0

The Requires

  • ext-curl *
  • ext-http *
  • ext-json *
  • ext-mbstring *
  • ext-mcrypt *
  • ext-memcached *
  • ext-pdo *
  • php-64bit >=5.5.0

 

by Carl Bennett

api frontend php rest mvc cms backend restful management content system

23/11 2016

2.2.0

2.2.0.0 https://github.com/carlbennett/php-mvc

A PHP micro-framework for use as a frontend and/or backend

  Sources   Download

AGPL-3.0

The Requires

  • ext-curl *
  • ext-http *
  • ext-json *
  • ext-mbstring *
  • ext-mcrypt *
  • ext-memcached *
  • ext-pdo *
  • php-64bit >=5.5.0

 

by Carl Bennett

api frontend php rest mvc cms backend restful management content system

25/08 2016

2.1.3

2.1.3.0 https://github.com/carlbennett/php-mvc

A PHP micro-framework for use as a frontend and/or backend

  Sources   Download

AGPL-3.0

The Requires

  • ext-curl *
  • ext-http *
  • ext-json *
  • ext-mbstring *
  • ext-mcrypt *
  • ext-memcached *
  • ext-pdo *
  • php-64bit >=5.5.0

 

by Carl Bennett

api frontend php rest mvc cms backend restful management content system

25/08 2016

2.1.2

2.1.2.0 https://github.com/carlbennett/php-mvc

A web content management system (CMS) compatible for use as a frontend and backend.

  Sources   Download

AGPLv3

The Requires

  • ext-curl *
  • ext-geoip *
  • ext-gmp *
  • ext-http *
  • ext-json *
  • ext-mbstring *
  • ext-mcrypt *
  • ext-memcached *
  • ext-pdo *
  • php-64bit >=5.5.0

 

by Carl Bennett

api frontend php rest mvc cms backend restful management content system

24/08 2016

2.1.1

2.1.1.0 https://github.com/carlbennett/php-mvc

A web content management system (CMS) compatible for use as a frontend and backend.

  Sources   Download

AGPLv3

The Requires

  • ext-curl *
  • ext-geoip *
  • ext-gmp *
  • ext-http *
  • ext-json *
  • ext-mbstring *
  • ext-mcrypt *
  • ext-memcached *
  • ext-pdo *
  • php-64bit >=5.5.0

 

by Carl Bennett

api frontend php rest mvc cms backend restful management content system

21/08 2016

2.1.0

2.1.0.0 https://github.com/carlbennett/php-mvc

A web content management system (CMS) compatible for use as a frontend and backend.

  Sources   Download

CC-BY-SA-4.0

The Requires

  • ext-curl *
  • ext-geoip *
  • ext-gmp *
  • ext-http *
  • ext-json *
  • ext-mbstring *
  • ext-mcrypt *
  • ext-memcached *
  • ext-pdo *
  • php-64bit >=5.5.0

 

by Carl Bennett

api frontend php rest mvc cms backend restful management content system

20/08 2016

2.0.9

2.0.9.0 https://github.com/carlbennett/php-mvc

A web content management system (CMS) compatible for use as a frontend and backend.

  Sources   Download

CC-BY-SA-4.0

The Requires

  • ext-curl *
  • ext-geoip *
  • ext-gmp *
  • ext-http *
  • ext-json *
  • ext-mbstring *
  • ext-mcrypt *
  • ext-memcached *
  • ext-pdo *
  • php-64bit >=5.5.0

 

by Carl Bennett

api frontend php rest mvc cms backend restful management content system

12/08 2016

2.0.8

2.0.8.0 https://github.com/carlbennett/php-mvc

A web content management system (CMS) compatible for use as a frontend and backend.

  Sources   Download

CC-BY-SA-4.0

The Requires

  • ext-curl *
  • ext-geoip *
  • ext-gmp *
  • ext-http *
  • ext-json *
  • ext-mbstring *
  • ext-mcrypt *
  • ext-memcached *
  • ext-pdo *
  • php-64bit >=5.5.0

 

by Carl Bennett

api frontend php rest mvc cms backend restful management content system

12/08 2016

2.0.7

2.0.7.0 https://github.com/carlbennett/php-mvc

A web content management system (CMS) compatible for use as a frontend and backend.

  Sources   Download

CC-BY-SA-4.0

The Requires

  • ext-curl *
  • ext-geoip *
  • ext-gmp *
  • ext-http *
  • ext-json *
  • ext-mbstring *
  • ext-mcrypt *
  • ext-memcached *
  • ext-pdo *
  • php-64bit >=5.5.0

 

by Carl Bennett

api frontend php rest mvc cms backend restful management content system

12/08 2016

2.0.6

2.0.6.0 https://github.com/carlbennett/php-mvc

A web content management system (CMS) compatible for use as a frontend and backend.

  Sources   Download

CC-BY-SA-4.0

The Requires

  • ext-curl *
  • ext-geoip *
  • ext-gmp *
  • ext-http *
  • ext-json *
  • ext-mbstring *
  • ext-mcrypt *
  • ext-memcached *
  • ext-pdo *
  • php-64bit >=5.5.0

 

by Carl Bennett

api frontend php rest mvc cms backend restful management content system

04/08 2016

2.0.5

2.0.5.0 https://github.com/carlbennett/php-mvc

A web content management system (CMS) compatible for use as a frontend and backend.

  Sources   Download

CC-BY-SA-4.0

The Requires

  • ext-curl *
  • ext-geoip *
  • ext-gmp *
  • ext-http *
  • ext-json *
  • ext-mbstring *
  • ext-mcrypt *
  • ext-memcached *
  • ext-pdo *
  • php-64bit >=5.5.0

 

by Carl Bennett

api frontend php rest mvc cms backend restful management content system

04/08 2016

2.0.4

2.0.4.0 https://github.com/carlbennett/php-mvc

A web content management system (CMS) compatible for use as a frontend and backend.

  Sources   Download

CC-BY-SA-4.0

The Requires

  • ext-curl *
  • ext-geoip *
  • ext-gmp *
  • ext-http *
  • ext-json *
  • ext-mbstring *
  • ext-mcrypt *
  • ext-memcached *
  • ext-pdo *
  • php-64bit >=5.5.0

 

by Carl Bennett

api frontend php rest mvc cms backend restful management content system

04/08 2016

2.0.3

2.0.3.0 https://github.com/carlbennett/php-mvc

A web content management system (CMS) compatible for use as a frontend and backend.

  Sources   Download

CC-BY-SA-4.0

The Requires

  • ext-curl *
  • ext-geoip *
  • ext-gmp *
  • ext-http *
  • ext-json *
  • ext-mbstring *
  • ext-mcrypt *
  • ext-memcached *
  • ext-pdo *
  • php-64bit >=5.5.0

 

by Carl Bennett

api frontend php rest mvc cms backend restful management content system

04/08 2016

2.0.2

2.0.2.0 https://github.com/carlbennett/php-mvc

A web content management system (CMS) compatible for use as a frontend and backend.

  Sources   Download

CC-BY-SA-4.0

The Requires

  • ext-curl *
  • ext-geoip *
  • ext-gmp *
  • ext-http *
  • ext-json *
  • ext-mbstring *
  • ext-mcrypt *
  • ext-memcached *
  • ext-pdo *
  • php-64bit >=5.5.0

 

by Carl Bennett

api frontend php rest mvc cms backend restful management content system

28/07 2016

2.0.1

2.0.1.0 https://github.com/carlbennett/php-mvc

A web content management system (CMS) compatible for use as a frontend and backend.

  Sources   Download

CC-BY-SA-4.0

The Requires

  • ext-curl *
  • ext-geoip *
  • ext-gmp *
  • ext-http *
  • ext-json *
  • ext-mbstring *
  • ext-mcrypt *
  • ext-memcached *
  • ext-pdo *
  • php-64bit >=5.5.0

 

by Carl Bennett

api frontend php rest mvc cms backend restful management content system

15/07 2016

2.0.0

2.0.0.0 https://github.com/carlbennett/php-mvc

A web content management system (CMS) compatible for use as a frontend and backend.

  Sources   Download

CC-BY-SA-4.0

The Requires

  • ext-curl *
  • ext-geoip *
  • ext-gmp *
  • ext-http *
  • ext-json *
  • ext-mbstring *
  • ext-mcrypt *
  • ext-memcached *
  • ext-pdo *
  • php-64bit >=5.5.0

 

by Carl Bennett

api frontend php rest mvc cms backend restful management content system