PHP code example of palmtree / wp-navmenu

1. Go to this page and download the library: Download palmtree/wp-navmenu 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/ */

    

palmtree / wp-navmenu example snippets



$collection = new \Palmtree\WordPress\NavMenu\NavMenuCollection();
$collection->set('header', 'Header Nav');

<nav class="navbar navbar-default"><?= $collection->renderMenu('header');