PHP code example of terminusstudio / slimfacades

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

    

terminusstudio / slimfacades example snippets

 php
$app = Slim\Factory\AppFactory::create();
TS\Facades\Facade::setFacadeApplication($app);
 php
use TS\Facades\Route;

Route::get('/', function ($request, $response) {
    ...
});