1. Go to this page and download the library: Download iatstuti/simple-menu 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/ */
iatstuti / simple-menu example snippets
use Iatstuti\SimpleMenu\Manager;
$manager = new Manager();
$menu = $manager->init('main-menu');
$menu->link('Link label', 'http://example.com/link-label');
$menu->link('Another link', 'http://example.com/another-link');
$submenu = $manager->create('First sub menu')
$submenu->link('First sub menu link', 'http://example.com/first-sub-menu-link');
$submenu->link('Second sub menu link', 'http://example.com/second-sub-menu-link');
$menu->addSubMenu($submenu);