PHP code example of malfasih / slim3-json-parser
1. Go to this page and download the library: Download malfasih/slim3-json-parser library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
malfasih / slim3-json-parser example snippets
= new \Slim\App();
$container = $app->getContainer();
$container['json'] = function($container) {
return new \Malfasih\Slim\JsonParser();
};
public function getUserData($request, $response)
{
return $this->json->print($response, true, 'OK');
}