PHP code example of darvinstudio / darvin-menu-bundle

1. Go to this page and download the library: Download darvinstudio/darvin-menu-bundle 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/ */

    

darvinstudio / darvin-menu-bundle example snippets

twig
{{ render_esi(controller('darvin_menu.controller.menu', {
    'buildOptions':  {'menu': 'header', 'depth': 2},
    'renderOptions': {'template': 'menu/header.html.twig'},
})) }}