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(8mo ago)66722MITPHPPHP ^8.1

Since Jun 25Pushed 8mo 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 1mo ago

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

37

—

LowBetter than 83% of packages

Maintenance59

Moderate activity, may be stable

Popularity24

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

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

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

[awcodes/filament-quick-create

Plugin for Filament Admin that adds a dropdown menu to the header to quickly create new items.

246177.6k7](/packages/awcodes-filament-quick-create)[guava/filament-knowledge-base

A filament plugin that adds a knowledge base and help to your filament panel(s).

206120.5k1](/packages/guava-filament-knowledge-base)[ralphjsmit/laravel-filament-seo

A package to combine the power of Laravel SEO and Filament Admin.

15398.7k10](/packages/ralphjsmit-laravel-filament-seo)[geo-sot/filament-env-editor

Access .env file though Filament admin panel

2432.3k1](/packages/geo-sot-filament-env-editor)[inerba/filament-db-config

A Filament plugin for database-backed application settings and editable content, with caching and easy page generation.

329.1k](/packages/inerba-filament-db-config)[caresome/filament-neobrutalism-theme

A neobrutalism theme for FilamentPHP admin panels

303.2k](/packages/caresome-filament-neobrutalism-theme)

PHPackages © 2026

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