Skip to content

tasoftch/php-menu-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP Menu Model Library

The menu library is an approach to create abstract models of menus or navigation bars.
It is no HTML render, just a model that stores, validates and selects menus and menu items.

$ composer require tasoft/menu-service

It allows to create menus (as containers) and menu items (as items) and maintains consistency.

use TASoft\MenuService\Menu;
use TASoft\MenuService\MenuItem;

$menu = new Menu("menu");

$item = new MenuItem("item");
$menu->addItem($item);

// $item->getMenu() === $menu  => TRUE!

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages