PHP code example of kuick / http

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

    

kuick / http example snippets




use Kuick\Http\Message\JsonResponse;
use Kuick\Http\Server\ResponseEmitter;

$emitter = new ResponseEmitter();
$response = new JsonResponse(['message' => 'test']);
$emitter->emitResponse($response);