2017 © Pedro Peláez
 

library navmenu

A lightweight implementation of navigation menu builder for PHP

image

lotus/navmenu

A lightweight implementation of navigation menu builder for PHP

  • Friday, June 2, 2017
  • by crajbanshi
  • Repository
  • 1 Watchers
  • 0 Stars
  • 34 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

PHP Menu builder for Codeigniter and Laravel

This is a package for simply creating Navigation Menu, breadcumb and sitemap in PHP, Codeigniter and Laravel 5., (*1)

Introduction

Simply use the Menu facade in the place of the Nav Menu facade when you want to generate a Navigation Menu., (*2)

Add via composer, (*3)

composer require lotus/navmenu

Menu is a php class which auto build navigation menu., (*4)

First Input the menu array and navbar css class., (*5)

$type = 'user';
Menu::setMenuArray ( $navbarArray,[ 'class' => 'nav nav-bar' ], $type );

To place menu at your page, use render method at your header page., (*6)

echo Menu::render ();

Get Breadcumb, (*7)

echo Menu::renderBreadcumb ();

Get Active menu array, (*8)

$lavel = 0;
echo Menu::getActiveMenu($lavel);

This one can generate sitemap also. site map using this class library., (*9)

Generate Sitemap in Sitemap page use,, (*10)

Menu::renderSitemap( $type, 'Customer' ) ;, (*11)

$menutype is either public or user., (*12)

Example menu input array, (*13)

$navbarArray = [ 'home' => [ 'label' => 'Home', 'url' =>  ( '/Home' ), 'icon'=>'fa fa-home' ],
        'View' => [ 'label' => 'View', 'url' => '',
             'child' => [
                 'user_related' => [ 'label' => 'User Related', 'url' => '#'  ]
            ]
         ],
        'AboutUs' => [ 'label' => 'About Us', 'url' => '#' , 
            'child' => [ 'aboutus' => [ 'label' => 'About Us', 'url' =>  ( '/About-us' ) ],
                     'contactus' => [ 'label' => 'Contact Us', 'icon' => 'fa fa-envelope', 'url' =>  ( '/Contactus' ) ]
                 ] 
            ],
        'usermenu' => [ 'label' => 'Login', 'icon' => 'fa fa-sign-in', 'url' => "#", 'atribute' => [ 'onClick' => "log_in();" ] ] 
    ];

The Versions

02/06 2017

dev-master

9999999-dev

A lightweight implementation of navigation menu builder for PHP

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Chanchal Rajbanshi

nav php menu

02/06 2017

v1.1.1

1.1.1.0

A lightweight implementation of navigation menu builder for PHP

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Chanchal Rajbanshi

nav php menu

02/06 2017

v1.1.2

1.1.2.0

A lightweight implementation of navigation menu builder for PHP

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Chanchal Rajbanshi

nav php menu

02/06 2017

v1.1.0

1.1.0.0

A lightweight implementation of navigation menu builder for PHP

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Chanchal Rajbanshi

nav php menu

24/04 2017

v1.0.0

1.0.0.0

A lightweight implementation of navigation menu builder for PHP

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Chanchal Rajbanshi

nav php menu