PHP code example of francscafe / json-response
1. Go to this page and download the library: Download francscafe/json-response 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/ */
francscafe / json-response example snippets
/**
* Created by PhpStorm.
* User: fcromer
* Date: 9/6/18
* Time: 4:57 PM
*/
'course' => 'Software Engineering',
'collections' => ['books' => 'Intro to UML', 'music' => 'rap']
);
new JsonResponse('ok', '', $student);