amaka / learning-composer
I am learning how to use composer
1.1.1
2023-01-01 05:26 UTC
Requires
- php: >=5.3.0
This package is auto-updated.
Last update: 2026-03-29 01:01:10 UTC
README
I am learning how to use composer
Installation
composer create-project amaka/learning-composer
Usage
<?php require_once(__DIR__ . DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR . 'autoload.php'); use Devscreencast\ResponseClass\JsonResponse; $student = array( "name" => "John", "course" => "English", "level" => 200 ); new JsonResponse("Ok", "", $student);
Param 1 (Required)
- Success or OK - 200 HTTP Status
- Unauthorized - 401 HTTP Status
- Exception - 500 HTTP Status (Internal Server Error)
Param 2 (Optional)
String - The return message. Use empty quote if unavailable
Param 3 (Optional)
Array - Array of Data