amaka / learning-composer
I am learning how to use composer
Installs: 6
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:project
Requires
- php: >=5.3.0
This package is auto-updated.
Last update: 2025-06-29 02:08:19 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