1. Go to this page and download the library: Download popphp/pop-nav 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/ */
use Pop\Nav\Nav;
$nav = new Nav($tree, $config);
echo $nav;
use Pop\Acl\Acl;
use Pop\Acl\AclRole as Role;
use Pop\Acl\AclResource as Resource;
$acl = new Acl();
$admin = new Role('admin');
$editor = new Role('editor');
$acl->addRoles([$admin, $editor]);
$acl->addResource(new Resource('config'));
$acl->allow('admin');
$acl->deny('editor', 'config');