nzo/left-sidebar-bundle

The NzoLeftSidebarBundle is a Symfony Bundle used to handle Left SideBare Menu

Maintainers

👁 nayzo

Package info

github.com/nayzo/NzoLeftSidebarBundle

Type:symfony-bundle

pkg:composer/nzo/left-sidebar-bundle

Statistics

Installs: 23

Dependents: 0

Suggesters: 0

Stars: 1

Open Issues: 0

v0.2.5 2021-08-28 19:31 UTC

Requires

Requires (Dev)

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT 419a12ab2f6521ccfaef55ee60ea80d79c31b645

  • Ala Eddine Khefifi <alakhefifi.woop@gmail.com>

menutemplateleft-sidebar

This package is auto-updated.

Last update: 2026-06-29 01:43:56 UTC


README

👁 Build Status
👁 Latest Stable Version

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