PHP code example of amaka / learning-composer

1. Go to this page and download the library: Download amaka/learning-composer 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/ */

    

amaka / learning-composer example snippets



Devscreencast\ResponseClass\JsonResponse;

$student = array(
    "name" => "John",
    "course" => "English",
    "level" => 200
);

new JsonResponse("Ok", "", $student);