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(3mo ago)01.5k↓100%2MITPHPPHP ^8.2

Since Aug 18Pushed 3mo agoCompare

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

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

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

42

—

FairBetter than 90% of packages

Maintenance78

Regular maintenance activity

Popularity20

Limited adoption so far

Community10

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

115d 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

[laravel/cashier

Laravel Cashier provides an expressive, fluent interface to Stripe's subscription billing services.

2.5k25.9M106](/packages/laravel-cashier)[laravel/pulse

Laravel Pulse is a real-time application performance monitoring tool and dashboard for your Laravel application.

1.7k12.1M99](/packages/laravel-pulse)[laravel-doctrine/orm

An integration library for Laravel and Doctrine ORM

8425.3M87](/packages/laravel-doctrine-orm)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[psalm/plugin-laravel

Psalm plugin for Laravel

3274.9M308](/packages/psalm-plugin-laravel)[laravel/folio

Page based routing for Laravel.

608453.9k27](/packages/laravel-folio)

PHPackages © 2026

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