PHP code example of tasoft / menu-service
1. Go to this page and download the library: Download tasoft/menu-service 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/ */
tasoft / menu-service example snippets
use TASoft\MenuService\Menu;
use TASoft\MenuService\MenuItem;
$menu = new Menu("menu");
$item = new MenuItem("item");
$menu->addItem($item);
// $item->getMenu() === $menu => TRUE!