PHP Classes

PHP Menu class: Create horizontal or vertical cascading menu

Recommend this page to a friend!
  Info   View files Example   View files View files (8)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 59%Total: 6,082 All time: 370 This week: 151Up
Version License PHP version Categories
menuclass 1.0.0GNU General Publi...4HTML
Description Author

This class can create horizontal or vertical cascading menus.

It can add menu items that can have a text and a link URL.

The items may have sub-items to form cascading menus.

The menus can expand in the horizontal or vertical.


What is the best PHP menu class?
Top page horizontal menu bar with multi levels, no database

Picture of Sebastian D
Name: Sebastian D <contact>
Classes: 2 packages by
Country: Germany Germany
Age: 42
All time rank: 37122 in Germany Germany
Week rank: 506 Down24 in Germany Germany Down

Class to create a cascading horizontal/vertival menu

First thanks to Ger Versluis (
and Dynamic Drive Code Library (
The JS-Code comes from him. I just use it for the Class.

Short Menu.class.php Description

	In the demo.php is a short example.
    Requirements: menu_com.js in the local dir

    1. Instancing the class
    2. Add some MenuItems with
    3. GetHtml() returns the HTML-Code.

    4. You can Set/Get many MenuAttributes
       Read the Help in>config.htm
       You can download it from: 


    This i the first version and so it isnt complete.

	menu.class.php						Class
    demo.php            				Example of usage
    smarty_demo.php					Smarty Example
    smarty_demo.tpl					Smarty-Tpl
    menu_com.js							JS-Code							JS-CODE by Ger Versluis --> could not upload to
    tri.gif,tridown.gif,trileft.gif     Some Gifs :-) --> could not upload to
  Files folder image Files  
File Role Description
Accessible without login Plain text file config.htm Doc. Documentation to the Menuclass/JavascriptCode
Accessible without login Plain text file demo.php Example example
Accessible without login Plain text file install-frames.htm Doc. Documentation of using the JSCode in Frames by Ger Versluis
Plain text file menu.class.php Class class source
Accessible without login Plain text file menu_com.js Aux. js-code by Ger Versluis
Accessible without login Plain text file readme.txt Doc. readme
Accessible without login Plain text file smarty_demo.php Example Example of usage with Smarty
Accessible without login Plain text file smarty_demo.tpl Example tpl for Smarty_demo.php

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:370
This week:151Up
 User Ratings  
 All time
For more information send a message to info at phpclasses dot org.