PHPackages                             attargah/admin-bar - 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. [Admin Panels](/categories/admin)
4. /
5. attargah/admin-bar

ActiveLibrary[Admin Panels](/categories/admin)

attargah/admin-bar
==================

This package adds an admin bar for the front pages of websites built with Filament.

v1.0.2(10mo ago)61.4k2MITPHPPHP ^8.1

Since Jun 25Pushed 10mo agoCompare

[ Source](https://github.com/attargah/admin-bar)[ Packagist](https://packagist.org/packages/attargah/admin-bar)[ Docs](https://github.com/attargah/admin-bar)[ RSS](/packages/attargah-admin-bar/feed)WikiDiscussions main Synced today

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

[![attargah-admin-bar.jpg](art/attargah-admin-bar.jpg)](art/attargah-admin-bar.jpg)

Admin Bar
=========

[](#admin-bar)

**Admin Bar** is a Laravel package built for Filament that displays a fixed admin bar on the frontend of your site when a user is logged in. This bar provides quick access to the Filament panel and can be easily integrated into various projects with its customizable structure.

---

🔧 Features
----------

[](#-features)

- Fixed top bar display for authenticated users
- Quick access link to the Filament panel
- Customizable settings (logo, title, colors, height, etc.)
- Extendable structure with Filament Render Hook points

---

⚙️ Requirements
---------------

[](#️-requirements)

- PHP &gt;= 8.1
- Laravel &gt;= 10
- Filament &gt;= 3.0 | 4.0
- Tailwind CSS (for component styling)

---

🚀 Installation
--------------

[](#-installation)

```
composer require attargah/admin-bar
```

---

📦 Publishing (Optional)
-----------------------

[](#-publishing-optional)

To publish the default files:

```
php artisan vendor:publish --provider="Attargah\AdminBar\AdminBarServiceProvider"
```

---

🧹 Usage
-------

[](#-usage)

Add the plugin to your `AdminPanelProvider`:

```
use Attargah\AdminBar\AdminBarPlugin;

->plugins([AdminBarPlugin::make()])
```

---

🎨 Customization
---------------

[](#-customization)

```
AdminBarPlugin::make()
    ->setBarTextColor('text-white')
    ->setBarBackgroundColor('bg-gray-900')
    ->setBarCustomClass('')
    ->setBarHeight('h-12')
    ->setBarTitleFont('font-bold text-lg')
    ->setBarMenuItemsFont('text-sm')
    ->setBarMenuTitleFont('uppercase')
    ->setBarTitle('Admin Panel')
    ->setAuthMenuEnable(true)
    ->setLogoHeight('h-8')
    ->setLogoUrl('https://example.com/image.png')
```

> If a logo is defined, the title will not be shown.
> If both the logo and title are not defined, the default text **Admin Panel** will be displayed.
> All customizations are using TailwindCSS classes.

---

🧱 Blade Component Usage
-----------------------

[](#-blade-component-usage)

Add the following to the Blade file where you want the admin bar to appear:

```

```

This component needs `Tailwind CSS ` to look correct on your page.
The bar will only appear for authenticated users.
To customize further, you can publish and modify the `resources/views/components/admin-bar.blade.php` file.

---

🔌 Render Hook Points
--------------------

[](#-render-hook-points)

To extend the admin bar, use the following render hook points:

Hook PointDescription`BEFORE_TITLE`Before the title`AFTER_TITLE`After the title`BEFORE_AUTH_MENU`Before the auth user menu`AFTER_AUTH_MENU`After the auth user menu`BEFORE_AUTH_MENU_ITEMS`Before the menu items`AFTER_AUTH_MENU_ITEMS`After the menu items`BETWEEN_AUTH_MENU_ITEMS`Between each menu item### Example: Adding a new item to the auth menu

[](#example-adding-a-new-item-to-the-auth-menu)

```
use Filament\Panel;
use Filament\Support\Facades\FilamentView;
use Attargah\AdminBar\Enums\AdminBarRenderHook;

FilamentView::registerRenderHook(
    AdminBarRenderHook::BETWEEN_AUTH_MENU_ITEMS,
    fn () => '

                Settings

    ',
);
```

For more, check out the [Filament Render Hooks documentation](https://filamentphp.com/docs/3.x/support/render-hooks).

---

🌍 Translations
--------------

[](#-translations)

To customize translations, publish the `resources/lang/en/admin-bar.php` file:

```
php artisan vendor:publish --tag=admin-bar-translations
```

---

📄 License
---------

[](#-license)

This project is licensed under the MIT license.

---

🤝 Contributing
--------------

[](#-contributing)

Visit our GitHub page for pull requests and bug reports:
👉

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance54

Moderate activity, may be stable

Popularity25

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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

Total

3

Last Release

312d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/84e9bd8298d567ff2d308503a24435f3d782e32962aa992c1c42e8b2d8a4e9f5?d=identicon)[attargah](/maintainers/attargah)

---

Top Contributors

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

---

Tags

laraveladmin barattargah

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/attargah-admin-bar/health.svg)

```
[![Health](https://phpackages.com/badges/attargah-admin-bar/health.svg)](https://phpackages.com/packages/attargah-admin-bar)
```

###  Alternatives

[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3914.6k](/packages/rawilk-profile-filament-plugin)[stephenjude/filament-feature-flags

Filament implementation of feature flags and segmentation with Laravel Pennant.

122177.8k1](/packages/stephenjude-filament-feature-flags)[stephenjude/filament-jetstream

A Laravel starter kit built with Filament inspired by Jetstream.

17760.2k3](/packages/stephenjude-filament-jetstream)[stephenjude/filament-debugger

About

104162.2k2](/packages/stephenjude-filament-debugger)[stephenjude/filament-two-factor-authentication

Filament Two Factor Authentication: Google 2FA + Passkey Authentication

84215.9k9](/packages/stephenjude-filament-two-factor-authentication)[backstage/mails

View logged mails and events in a beautiful Filament UI.

16120.0k](/packages/backstage-mails)

PHPackages © 2026

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