PHPackages                             cscfa/navbar-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. cscfa/navbar-bundle

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

cscfa/navbar-bundle
===================

The NavBarBundle is a symfony2 navbar manager that use a Resources/config/navbar.yml file to manage navbar display

1.0.5(10y ago)130MITPHPPHP &gt;=5.3.9

Since Dec 14Pushed 10y ago2 watchersCompare

[ Source](https://github.com/cscfa/NavBarBundle)[ Packagist](https://packagist.org/packages/cscfa/navbar-bundle)[ RSS](/packages/cscfa-navbar-bundle/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (4)Dependencies (2)Versions (5)Used By (0)

NavBarBundle
============

[](#navbarbundle)

### Version: 1.0.5-dev

[](#version-105-dev)

The NavBarBundle allow to create a navbar from navbar.yml files placed into the Resources/config directory.

\#####Installation

Register the bundle into app/appKernel.php

```
// app/AppKernel.php
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            [...]
            new Cscfa\Bundle\NavBarBundle\CscfaNavBarBundle(),
        );

        [...]
    }
}

```

\#####The navbar.yml file construction

The default place of the 'navbar.yml' file is into 'Resources/config' directory. It's possible to change this place by using the following configuration :

```
cscfa_nav_bar:
    files_path: "path"

```

*note the given path must start with '/' and contain the complete file name. (example with the default configuration : '/Resources/config/navbar.yml')*

\######The file format is :

```
navbar:
	name:
		label: ""
		roles: []
		parent: ""
		path: {route: "", param: {}}
		url: ""
		options: mixed
		position: integer

```

The 'navbar' element is the root element.

The 'name' element is the identifyer of the navbar element, it can be used for define parent and will be used as label if 'label' is not defined.

The 'label' element is used as element text for rendering. It's an optional element.

The 'roles' element is used to render or not the element, according with the current user roles. It's an optional element.

The 'parent' element is used to define the parent element of the current for the rendering logic. It's an optional element.

The 'path' and 'url' elements are used to define the navbar element destination. The 'path' element is a generated application route with 'route' as route name and 'param' as route parameters. It's an optional element.

The 'options' element is used to send options to the render template. It's an optional element.

The 'position' element is used to set the position of the element into the navbar. It order the heads elements instead of childs inside their parents. *note the default position can be set by the 'default\_position' parameter of the configuration.*

\#####The template

Use twig function '{{ renderNavbar() }}' to display the navbar with the default template.

To use personnal template, use the app/config/config.yml with the following parameters:

```
cscfa_nav_bar:
    template: "bundleName:directory:template.html.twig"
    child_template: "bundleName:directory:template.html.twig"

```

The 'template' parameter define the root template of the navbar. The template receive the navbar element into the 'element' variable.

The 'child\_template' parameter define the rendered template for each elements of the navbar. This template receive a child into 'element' variable and the navbar nesting level into 'nestedLevel' variable.

\#####Use cache

By default, the navbar loader will use cache to store the builded navbar. Configure with the following in 'app/config/config.yml' :

```
cscfa_nav_bar:
    cache:
		enable: true|false
		id:		'the_cache_id'

```

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~1 days

Total

4

Last Release

3848d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/12436206?v=4)[cscfa](/maintainers/cscfa)[@cscfa](https://github.com/cscfa)

---

Top Contributors

[![matthieu88160](https://avatars.githubusercontent.com/u/11874266?v=4)](https://github.com/matthieu88160 "matthieu88160 (22 commits)")

---

Tags

navbarcscfa

### Embed Badge

![Health badge](/badges/cscfa-navbar-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/cscfa-navbar-bundle/health.svg)](https://phpackages.com/packages/cscfa-navbar-bundle)
```

###  Alternatives

[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

1175.2k](/packages/rcsofttech-audit-trail-bundle)[yceruto/formflow-bundle

Create and manage multistep forms

2414.8k](/packages/yceruto-formflow-bundle)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
