PHP code example of jacksleight / coast

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

    

jacksleight / coast example snippets



use Coast\App;
use Coast\Request;
use Coast\Response;

$req, Response $res) {
    return $res->text('Hello World');
});

$app->execute();
bash
php -S localhost:8000 app.php