Download the PHP package benriadh1/filament-notification-bell without Composer

On this page you can find all versions of the php package benriadh1/filament-notification-bell. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package filament-notification-bell

Filament Notification Bell

Latest Version on Packagist Total Downloads

A real-time notification bell for Filament v5 powered by Laravel Reverb (or Pusher) and Livewire v4. Displays a live badge count and a toggleable panel (dropdown or slide-over) in the Filament topbar, with full RTL support, i18n, dark mode, and a polling fallback.


Features


Requirements

Requirement Version
PHP ^8.2
Laravel ^11.0
Filament ^5.0
Livewire ^4.0

Installation

1. Install via Composer

2. Publish and run the migration

3. Publish the CSS asset

4. Register the plugin in your Filament panel

In your Panel provider (e.g. app/Providers/Filament/AdminPanelProvider.php):

That's it! The bell will appear in the top bar automatically.


Sending Notifications

Use Laravel's built-in notification system. The plugin reads from the notifications table automatically.

Then send it:

Real-time broadcast (optional)

If you want the bell to update in real time without page reload, add the HasNotificationBell trait to your User model and call notifyBell() after sending a notification:


Configuration Reference

Publish the config:

Key Default Description
limit 20 Max notifications per page in the bell panel
reverb true true = Reverb, false = Pusher
channel_type 'private' 'private' or 'presence'
polling false Enable polling fallback when WebSocket is unavailable
poll_interval 30 Polling interval in seconds
model null Custom notification model (null = Laravel default)
date_format 'diffForHumans' 'diffForHumans' (relative) or 'datetime' (absolute)
locale null Force locale (null = use app()->getLocale())
rtl_locales ['ar','fa','he','ur'] Locales that trigger RTL layout
force_rtl false Force RTL regardless of locale
theme 'auto' 'auto' / 'light' / 'dark'

Fluent Plugin API

All options can be set fluently when registering the plugin:


Customizing Views

Publish the views to override them in your application:

Views will be copied to resources/views/vendor/filament-notification-bell/.


Light & Dark Mode

By default (auto), the bell follows your Filament panel's dark mode setting β€” no extra configuration needed if your panel already uses ->darkMode().

Force light mode:

Force dark mode:

Auto (default) β€” respects Filament panel setting:


Multi-language / i18n

Bundled locales

Locale Language
πŸ‡¬πŸ‡§ en English
πŸ‡ΈπŸ‡¦ ar Arabic (RTL)
πŸ‡«πŸ‡· fr French
πŸ‡ͺπŸ‡Έ es Spanish
πŸ‡©πŸ‡ͺ de German
πŸ‡¨πŸ‡³ zh_CN Chinese Simplified

Publish lang files

Override a translation key

After publishing, edit the file at lang/vendor/filament-notification-bell/en/notification-bell.php:

Add a new language

Create the file at:

For example, for French (fr):

Force a specific locale

RTL support

RTL layout is automatically enabled for ar, fa, he, and ur. The dir="rtl" attribute and text-alignment classes are applied automatically. To add another locale or force RTL:


Changelog

See CHANGELOG.md for recent changes.


Contributing

Contributions are welcome! Please open a pull request or issue on GitHub.

New translations are especially welcome β€” add a new language file and open a PR!

  1. Fork the repository
  2. Create your feature branch: git checkout -b feat/my-feature
  3. Commit your changes: git commit -m "feat: add my feature"
  4. Push: git push origin feat/my-feature
  5. Open a Pull Request

License

The MIT License (MIT). See LICENSE.md for more details.


All versions of filament-notification-bell with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
filament/filament Version ^5.0
laravel/framework Version ^11.0|^12.0|^13.0
livewire/livewire Version ^4.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package benriadh1/filament-notification-bell contains the following files

Loading the files please wait ...