PHPackages                             typicms/sidebar - 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. typicms/sidebar

ActiveLibrary

typicms/sidebar
===============

A sidebar builder for TypiCMS

1.1.0(2mo ago)01.5k↓100%MITPHPPHP ^8.2

Since Aug 18Pushed 2mo agoCompare

[ Source](https://github.com/TypiCMS/Sidebar)[ Packagist](https://packagist.org/packages/typicms/sidebar)[ RSS](/packages/typicms-sidebar/feed)WikiDiscussions main Synced today

READMEChangelog (3)Dependencies (6)Versions (4)Used By (0)

TypiCMS Sidebar
===============

[](#typicms-sidebar)

This package is based on SpartnerNL/Laravel-Sidebar v1

Installation
------------

[](#installation)

Require this package in your `composer.json` and run `composer update`.

```
"typicms/sidebar": "~1.0.0"
```

After updating composer, add the ServiceProvider to the providers array in `bootstrap/providers.php`

```
'TypiCMS\Modules\Sidebar\SidebarServiceProvider::class',
```

To publish the default views use:

```
php artisan vendor:publish
```

Adding a menu
-------------

[](#adding-a-menu)

```
// Or use dependency injection
$builder = app('TypiCMS\Modules\Sidebar\SidebarManager');

$builder->group('app', function ($group)
{
    $group->addItem('dashboard', function($item)
    {
        // Route method automatically transforms it into a route
        $item->route('admin::dashboard');

        // If you want to call route() yourself to pass optional parameters
        $item->route = route('admin::dashboard');
    });
}
```

Groups
------

[](#groups)

It’s possible to group the menu items. A little header will be rendered to separate the different menu items.

Adding items
------------

[](#adding-items)

The first parameter of `$group->addItem()` is the name. The name field will automatically be translated through the `menu` translation file. (e.g. `menu.dashboard`). If the translation does not exists, the given name will be displayed.

The second parameter is optionally a callback. Alternatively you can chain the methods.

You can change the `route`, `name` and `icon`. If you route given it will automatically be translated to `acp.{$name}.index`.

Without group headings
----------------------

[](#without-group-headings)

To disable rendering of the group headings, you can easily use `$builder->withoutGroup()`. Group headings will now be ignored.

Authorization
-------------

[](#authorization)

By default, all groups and items are public for all users. You can use `->authorized(false)` on all these objects to disable them or use any condition you want.

Advanced usage
--------------

[](#advanced-usage)

If you have multiple sidebars, you can extend the SidebarManager and register a new singleton:

```
class AdminSidebar extends SidebarManager
{
    public function build($callback = null)
    {
        $this->group('application', function(SidebarGroup $group) {

            $group->addItem(...)

        });
    }

}
```

###  Health Score

43

—

FairBetter than 91% of packages

Maintenance86

Actively maintained with recent releases

Popularity20

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 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 ~74 days

Total

3

Last Release

66d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b93740e4c6b40a6219441696db5db9c4b635dad91339c1893dfe0813434e8d94?d=identicon)[Samuel De Backer](/maintainers/Samuel%20De%20Backer)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/typicms-sidebar/health.svg)

```
[![Health](https://phpackages.com/badges/typicms-sidebar/health.svg)](https://phpackages.com/packages/typicms-sidebar)
```

###  Alternatives

[htmlmin/htmlmin

HTMLMin Is A Simple HTML Minifier For Laravel 5

1.0k1.9M8](/packages/htmlmin-htmlmin)[recca0120/laravel-tracy

A Laravel Package to integrate Nette Tracy Debugger

388282.6k3](/packages/recca0120-laravel-tracy)[genealabs/laravel-impersonator

Impersonate users in your Laravel and Nova apps.

62244.7k](/packages/genealabs-laravel-impersonator)[lanos/laravel-cashier-stripe-connect

Adds Stripe Connect functionality to Laravel's main billing package, Cashier.

84127.2k](/packages/lanos-laravel-cashier-stripe-connect)[rinvex/laravel-menus

Rinvex Menus is a simple menu builder package for Laravel, that supports hierarchical structure, ordering, and styling with full flexibility using presenters for easy styling and custom structure of menu rendering.

294.0k20](/packages/rinvex-laravel-menus)

PHPackages © 2026

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