1. Go to this page and download the library: Download log1x/navi 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/ */
log1x / navi example snippets
use Log1x\Navi\Navi;
$navigation = Navi::make()->build('primary_navigation');
if ($navigation->isEmpty()) {
return;
}
return $navigation->toArray();
$navigation->get()->name;
$navigation->get('name', 'My menu title');