nzo / left-sidebar-bundle
The NzoLeftSidebarBundle is a Symfony Bundle used to handle Left SideBare Menu
Installs: 22
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=7.1.3
- symfony/framework-bundle: ^4.4|^5.0
- symfony/yaml: ^4.4|^5.0
- twig/twig: ^2.10|^3.0
Requires (Dev)
- phpunit/phpunit: ^4.8 || ^5.0
README
The NzoLeftSidebarBundle is a Symfony Bundle used to handle Left SideBare Menu.
This Bundle is compatible with Symfony >= 4.4
Installation
Through Composer:
$ composer require nzo/left-sidebar-bundle
Register the bundle in config/bundles.php (without Flex)
// config/bundles.php return [ // ... Nzo\LeftSidebarBundle\NzoLeftSidebarBundle::class => ['all' => true], ];
Configure the bundle:
# config/packages/nzo_left_sidebar.yaml nzo_left_sidebar: menu: user: label: Admin Users route_or_uri: /user # uri href icon: users cssClass: bn-danger role: ROLE_ADMIN accepted_environment_names: [prod, dev] # optional article: label: Articles route_or_uri: article_index # route name icon: feather role: ROLE_USER children: article_foo: label: Foo route_or_uri: /foo icon: fa fa-play-circle role: ROLE_USER children: article_foo_bar: label: bar route_or_uri: foo/bar icon: fa fa-video-camera role: ROLE_USER
Override the default template:
It is possible de override the default template:
templates/
└─ bundles/
└─ NzoLeftSidebarBundle/
└─ left-sidebar.html.twig
License
This bundle is under the MIT license. See the complete license in the bundle:
See LICENSE