PHPackages                             symplely/menu - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. symplely/menu

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

symplely/menu
=============

A simple menu builder in PHP

1.0.1(6y ago)021MITPHPPHP &gt;5.6

Since Nov 24Pushed 6y agoCompare

[ Source](https://github.com/symplely/menu)[ Packagist](https://packagist.org/packages/symplely/menu)[ RSS](/packages/symplely-menu/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

menu
====

[](#menu)

[![Build Status](https://camo.githubusercontent.com/74826e380beaa40fd92e081f82d276f82fae9ae9412d7d9e18a7fdcbdbcc6d52/68747470733a2f2f7472617669732d63692e6f72672f73796d706c656c792f6d656e752e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/symplely/menu)[![Build status](https://camo.githubusercontent.com/10f9cffbe3d8223af3b544633ff7ad6ac09c8c2fa2c27d0783b9faaba79e5b6d/68747470733a2f2f63692e6170707665796f722e636f6d2f6170692f70726f6a656374732f7374617475732f636a61306464687236376b62327175652f6272616e63682f6d61737465723f7376673d74727565)](https://ci.appveyor.com/project/techno-express/menu/branch/master)[![codecov](https://camo.githubusercontent.com/3067e6e4d981ec00fe5d1dbc728690f0fbb9b0c8a6aea0e00e7490835690041f/68747470733a2f2f636f6465636f762e696f2f67682f73796d706c656c792f6d656e752f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/symplely/menu)[![Codacy Badge](https://camo.githubusercontent.com/fc22d7c65f056602ea81a0cf2b6f9e352792d2f064907d75004863cbdfc1b4ad/68747470733a2f2f6170692e636f646163792e636f6d2f70726f6a6563742f62616467652f47726164652f6333346131336136333939313462663739343536663433626133333431653230)](https://www.codacy.com/manual/techno-express/menu?utm_source=github.com&utm_medium=referral&utm_content=symplely/menu&utm_campaign=Badge_Grade)[![Maintainability](https://camo.githubusercontent.com/291a3f2a3e8e4cbbf1582b8d54e588222245be46f6d10bf2b6f5da7d96eeb8bb/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f30393266346231336661386331323839366132322f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/symplely/menu/maintainability)

A simple menu builder in PHP

Installation
------------

[](#installation)

To install this library make sure you have [composer](https://getcomposer.org/) installed, then run following command:

```
composer require symplely/menu
```

Usage
-----

[](#usage)

A **menu** can be instantiated and items can be added fluently with the `add` method, which requires a **url** and a string of **text** as parameters.

```
