ramoose/piece-of-site

This package is not installable via Composer 1.x, please make sure you upgrade to Composer 2+. Read more about our Composer 1.x deprecation policy.

Generate HTML5 element blocks with some ease.

1.0.0 2017-09-07 03:29 UTC

This package is auto-updated.

Last update: 2021-09-27 10:46:31 UTC


README

Create menus with PHP!

$menu = Menu::simple()
 ->addItem("USA")
 ->addItem("Canada")
 ->addItem(Menu::subMenu("Cities")
           ->addItem("Toronto")
           ->addItem("Montreal")
 )
 ->addItem(Menu::subMenu("Dinosaurs")
           ->addItem("Trex")
           ->addItem(Menu::subMenu("Pterosaur")
                     ->addItem("Pteranodon")))
 ->addItem("Barf")
 ;
  1. Allow for arbitrary class and data

Disclaimer: This library is currently in development phase; there have been no releases as of yet. Use are your own peril!