2017 © Pedro Peláez
 

library menu-generator

HTML Menu Generator that plays well with bootstrap.

image

helilabs/menu-generator

HTML Menu Generator that plays well with bootstrap.

  • Friday, May 5, 2017
  • by manssour.mohammed
  • Repository
  • 1 Watchers
  • 0 Stars
  • 12 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

HeliMenuGenerator

HTML Menu Generator that plays well with bootstrap, (*1)

Why Built

This was because in every new project i do for some client i start with the same menu so i needed a menu genertor to save time as much as possible, (*2)

What does HeliMenuGenerator exactly generate?

HeliMenuGenerator just generates multi level html ul list this because every project has it's own styling, (*3)

installation

in config/app file, (*4)

1- the providers section add the following ling, (*5)

Helilabs\HeliMenuGenerator\LaravelLogic\HeliMenuGeneratorServiceProvider::class,

2- the aliases section add the following ling, (*6)

'Menu' => Helilabs\HeliMenuGenerator\LaravelLogic\HeliMenuGenerator::class,

How to use HeliMenuGenerator?

fisrt create a menu Array like this, (*7)

$menu = [
    'dashboard' => [
        'icon' => 'ti-panel',
        'text' => trans('messages.dashboard'),
        'url' => url('/')
    ],
    'users' => [
        'icon' => 'ti-user',
        'text' => trans('messages.users'),
        'url' => url('/')
    ],
    'productsContainer' => [
        'icon' => 'ti-package',
        'text' => trans('messages.products'),
        'url' => '#',
        'children' => [
            'products' => [
                'icon' => 'ti-package',
                'text' => trans('messaegs.products'),
                'url' => url('/products'),
            ],
            'categories' => [
                'icon' => 'ti-layers-alt',
                'text' => trans('messages.categories'),
                'url' => url('/categories')
            ]
        ]
    ],
    'orders' => [
        'icon' => 'ti-shopping-cart',
        'text' => trans('messages.orders'),
        'url' => url('/')
    ],
];

then use menu generator to do the rest, (*8)

{!! HeliMenuGenerator::parse( $menu ) !!}

The Versions

05/05 2017

dev-master

9999999-dev

HTML Menu Generator that plays well with bootstrap.

  Sources   Download

MIT

The Requires

 

by Mohammed Manssour

laravel html-menu-generator

05/05 2017

0.2.0

0.2.0.0

HTML Menu Generator that plays well with bootstrap.

  Sources   Download

MIT

The Requires

 

by Mohammed Manssour

laravel html-menu-generator

22/04 2017

0.1.0

0.1.0.0

HTML Menu Generator that plays well with bootstrap.

  Sources   Download

MIT

The Requires

 

by Mohammed Manssour

laravel html-menu-generator