2017 © Pedro Peláez
 

library controller

Manage action for http mesage

image

seeren/controller

Manage action for http mesage

  • Monday, April 2, 2018
  • by seeren
  • Repository
  • 0 Watchers
  • 0 Stars
  • 198 Installations
  • PHP
  • 3 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 14 Versions
  • 0 % Grown

The README.md

Seeren\Controller

Build Require Coverage Download CodacyVersion, (*1)

Manage action for http message, (*2)

Installation

composer require seeren/controller

Seeren\Controller\JsonController

Retrieve PSR-7 Response for JSON format, (*3)

use Seeren\Controller\JsonController;

$controller = new JsonController();
$response = $controller->render(['foo' => 'bar']);

Seeren\Controller\HTMLController

Retrieve PSR-7 Response for HTML format, (*4)

use Seeren\Controller\HTMLController;

$controller = new HTMLController();
$response = $controller->render('template.html.php', [
    'title' => 'Hello World'
]);

By default, templates folder is in /templates and include path can be specified at construction, (*5)

project/
└─ templates/

Template use PHP syntax and values are sanitized by default, (*6)

<h1><?= $title ?></h1>

License

This project is licensed under the MIT License, (*7)

The Versions

02/04 2018

dev-master

9999999-dev

Manage action for http mesage

  Sources   Download

MIT

The Requires

 

The Development Requires

psr-7 http controller httpcontroller

13/08 2017

v2.1.1

2.1.1.0

Manage action for http mesage

  Sources   Download

MIT

The Requires

 

The Development Requires

controller httpcontroller

01/08 2017

v2.0.1

2.0.1.0

Http controllers for ressources and components

  Sources   Download

MIT

The Requires

 

The Development Requires

controller

26/02 2017

v1.2.8

1.2.8.0

Basics and http controllers for ressources and components

  Sources   Download

MIT

The Requires

 

27/10 2016

v1.2.7

1.2.7.0

Basics and http controllers for ressources and components

  Sources   Download

MIT

The Requires

 

27/10 2016

v1.2.6

1.2.6.0

Basics and http controllers for ressources and components

  Sources   Download

MIT

The Requires

 

27/10 2016

v1.2.5

1.2.5.0

Basics and http controllers for ressources and components

  Sources   Download

MIT

The Requires

 

26/10 2016

v1.2.4

1.2.4.0

Basics and http controllers for ressources and components

  Sources   Download

MIT

The Requires

 

26/10 2016

v1.1.2

1.1.2.0

Basics and http controllers for ressources and components

  Sources   Download

MIT

The Requires

 

24/10 2016

v1.1.1

1.1.1.0

Basics and http controllers for ressources and components

  Sources   Download

MIT

The Requires

 

23/10 2016

v1.0.3

1.0.3.0

Basics and http controllers for ressources and components

  Sources   Download

MIT

The Requires

 

22/10 2016

v1.0.2

1.0.2.0

Basics and http controllers for ressources and components

  Sources   Download

MIT

The Requires

 

13/10 2016

v1.0.1

1.0.1.0

Basics and http controllers for ressources and components

  Sources   Download

MIT

The Requires