PHP code example of jowy / veloce

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

    

jowy / veloce example snippets



 = new Slim\App();

$app->get('/hello/{name}', function ($request, $response, $args) {
    $response->write("Hello, " . $args['name']);
    return $response;
});

$stack = new \Veloce\Stack($app);

$stack->listen(8000);