PHP code example of district5 / php-slim-framework-routes-builder
1. Go to this page and download the library: Download district5/php-slim-framework-routes-builder 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/ */
district5 / php-slim-framework-routes-builder example snippets
define('BASE_DIR', realpath(__DIR__ . '/../'));
$shouldRescan = true; // You could use a 'development' flag to establish this
$routeFile = \District5\SlimRouteFileBuilder\RouteBuilder::scanRoutes(
$shouldRescan, // Should the system rescan and write a new routes file?
BASE_DIR, // The base directory to work with.
'-route.php' // What the route file names should end in (optional). Use null to ignore this.
);
/** @noinspection PhpIncludeInspection */