PHP code example of drpheltright / lily
1. Go to this page and download the library: Download drpheltright/lily 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/ */
drpheltright / lily example snippets
php
provides building blocks for applications like routing
$handler = new Lily\Application\RoutedApplication([
// Define your routes as plain arrays
'routes' => [['GET', '/', 'Hello world']],
]);
// Serve your application over HTTP
(new Lily\Adapter\HTTP)->run(compact('handler'));
curl -s https://getcomposer.org/installer | php && php composer.phar install
php composer.phar install --dev
vendor/bin/phpunit