boxedcode/silex-knp-menu-service-provider
Composer 安装命令:
composer require boxedcode/silex-knp-menu-service-provider
包简介
A Silex Knp Menu service provider which is compatible with Silex 2.*
README 文档
README
This is a simple Silex Knp Menu Service Provider which is compatible with Silex 2.*. You can find out more about Knp Menu here
Installation
Install using composer, more information on composer is available here. The following simple command will install silex-knp-menu-service-provider into your project, add a new entry in your composer.json file and update the composer.lock file as well.
composer require boxedcode/silex-knp-menu-service-provider
Usage
Simply register the service provider in your Silex 2.* application along the lines of the following:
<?php
// Include dependencies installed with composer
require 'vendor/autoload.php';
use BoxedCode\Silex\Knp\MenuServiceProvider;
use Silex\Application;
$app = new Application();
$app->register(new MenuServiceProvider());
What now?
Follow the documentation available here and here to learn how to customise your menu and for other advanced usages of Knp Menu.
Credits
Knp Menu is provided courtesy of the team over at KnpLabs and the Symfony Community. Silex is provided courtesy of the team over at Sensio Labs.
统计信息
- 总下载量: 2.45k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2015-12-26