1. Go to this page and download the library: Download otas/dynamic-pages 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/ */
otas / dynamic-pages example snippets
// Global API prefix for all routes
'package_routes_prefix' => 'api',
// Specific prefixes for different route types
'package_admin_routes_prefix' => '',
'package_support_routes_prefix' => '',
'package_website_routes_prefix' => '',
// Enable/disable route loading
'load_routes' => true,
'middlewares' => [
'admin' => [
// Add your admin middleware here
// Example: 'auth:admin', 'permission:manage-dynamic-pages'
],
'support' => [
// Add your support middleware here
// Example: 'auth:support', 'permission:support-access'
],
'website' => [
// Add your public middleware here
// Example: 'throttle:60,1', 'cors'
],
],