2017 © Pedro Peláez
 

library menus

Create menus in your PHP application in no time

image

lavary/menus

Create menus in your PHP application in no time

  • Tuesday, November 15, 2016
  • by Lavary
  • Repository
  • 3 Watchers
  • 5 Stars
  • 64 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 2 Versions
  • 5 % Grown

The README.md

Menus

A nice Menu builder for PHP., (*1)

Version Build, (*2)

To install it, use composer:, (*3)

composer require lavary/menus

You can create a menu by calling make() method., (*4)

Here's a basic usage:, (*5)

<?php

use Lavary\Menus\MenuBuilder;

$builder = new MenuBuilder();

$builder->make('MyNavBar', function($menu) {

  $menu->add('Home');

  $menu->add('About', ['url' => 'about', 'class' => 'foo bar', 'data-role' => 'item'])->data('weight', 15);
  $menu->about->add('Goals', 'about/goals');

  $menu->add('services', 'services');
  $menu->add('Contact', 'contact');

});

echo $builder->get('myNavBar')->asBootstrap(['navbar-inverse']);

// or

echo $builder->get('myNavBar')->asUl();

Please checkout the documentation to learn about all the features., (*6)

If You Need Help

Please submit all issues and questions using GitHub issues and I will try to help you., (*7)

License

Menus is free software distributed under the terms of the MIT license., (*8)

The Versions

15/11 2016

dev-master

9999999-dev https://github.com/lavary/menus

Create menus in your PHP application in no time

  Sources   Download

MIT

The Requires

 

The Development Requires

by Reza M. Lavaryan

menu menus menu builder menu manager

13/11 2016

v0.1.0

0.1.0.0 https://github.com/lavary/menus

Create menus in your PHP application in no time

  Sources   Download

MIT

The Requires

 

The Development Requires

by Reza M. Lavaryan

menu menus menu builder menu manager