PHP code example of bandama / framework
1. Go to this page and download the library: Download bandama/framework 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/ */
bandama / framework example snippets
= Bandama\App::getInstance(null, Bandama\App::APP_MODE_DEV);
$router = $app->get('router');
$router->get('/', function() {
echo "<pre>Bandama Framework</pre>";
});
$router->get('/hello/:name', function($name) {
echo "<pre> Hello, $name";
});
$app->run();