PHP code example of rougin / slytherin
1. Go to this page and download the library: Download rougin/slytherin 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/ */
rougin / slytherin example snippets
php
// app/web/index.php
use Rougin\Slytherin\Application;
// Load the Composer autoloader ----
$root = dirname(dirname(__DIR__));
----------
// Create a new HTTP route ---
$app->get('/', function ()
{
return 'Hello world!';
});
// ---------------------------
// Then run the application after ---
echo $app->run();
// ----------------------------------