1. Go to this page and download the library: Download nikomtis/phbeam 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/ */
return [
'' => [
'file' => 'home',
'name' => 'Home',
'layout' => '',
'body_class' => '',
],
'about' => [ // Page will be available on example.com/about
'file' => 'about', // Page file with HTML code is "content/about.php"
'name' => 'About us', // We want this name in navigation menu
]
];
...
'menus' => [
'main',
'secondary', // Separate menu for sidebar
],
...