PHP code example of adrjmiranda / streamline-php
1. Go to this page and download the library: Download adrjmiranda/streamline-php 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/ */
adrjmiranda / streamline-php example snippets
treamline\Bootstrap;
use Streamline\Core\Router;
use App\Controllers\HomeController;
use App\Middlewares\CacheMiddleware;
Bootstrap::initialize();
$router = new Router();
$router->get('/', HomeController::class . ':index')->addMiddleware(CacheMiddleware::class)->alias('home_page');
$router->run();
bash
composer create-project adrjmiranda/streamline-php