lavary/menus
Composer 安装命令:
composer require lavary/menus
包简介
Create menus in your PHP application in no time
README 文档
README
A nice Menu builder for PHP.
To install it, use composer:
composer require lavary/menus
You can create a menu by calling make() method.
Here's a basic usage:
<?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.
If You Need Help
Please submit all issues and questions using GitHub issues and I will try to help you.
License
Menus is free software distributed under the terms of the MIT license.
统计信息
- 总下载量: 246
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 8
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-11-11