Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

slim-json

Coverage Status Code Climate Build Status

JSON middleware that enforces a json response wherever possible. Based on Accept header

installation

composer require slimphp-api/slim-json

usage

Add middleware in the usual way. For slim:

use Slim\App;
$app = new App();
$app->add(new SlimApi\Json\Json);
$app->run();

About

JSON middleware, detects is Accept header is json-y and attempts to json encode the output.

Resources

Stars

5 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages