Download the PHP package caiquebispo/notification-bell without Composer

On this page you can find all versions of the php package caiquebispo/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 notification-bell

Laravel Notification Bell

An elegant, framework-agnostic Laravel package for managing notifications with Livewire, featuring per-user preferences, full dark mode support, zero-build self-contained assets, and a robust delivery pipeline.

Latest Stable Version Total Downloads Latest Unstable Version License PHP Version Require

image image image image image

Highlights

Zero build, zero publish

The package ships its own self-contained CSS (prefixed nb-), served directly from vendor/ through a package route. No Tailwind, no Bootstrap, no npm run build, no vendor:publish needed — install via Composer, drop the component in your layout, done. It looks right in any project: Tailwind, Bootstrap, or plain CSS.

End-user control

Each user manages their own experience through a preferences panel inside the bell:

Robust delivery pipeline

Installation

Add the trait to your User model:

Include the component in your layout (Livewire 3 bundles Alpine.js — nothing else to install):

That's it. The component injects its own stylesheet automatically. If you prefer loading it in the <head>:

Optional publishing

Publishing is optional — only for deep customization:

Theming

Customize the look through config — applied via CSS variables, no build step:

Type colors come from the types section, so custom types get proper colors automatically:

Dark mode (theme.mode):

Per-instance overrides

User preferences

Enabled by default. Users open the gear icon inside the bell to control toasts, sound, volume, muted categories, snooze and quiet hours. Persisted in the notification_preferences table.

Programmatic access:

Categories

Group notifications above the type level. Users can mute categories they don't care about:

A notification sent to a user who muted its category is silently skipped.

Creating notifications

Action buttons

Delivery guards

Events

React in your app without coupling to the package:

Broadcasting (real-time)

With Laravel Echo (Reverb/Pusher) configured in the host app, the bell listens over websockets. Register the channel authorization in your routes/channels.php:

If Echo is absent, the component keeps working via polling.

REST API

For mobile apps and SPAs:

Method Endpoint Description
GET /api/notifications Paginated list (?status=unread\|read\|archived\|pinned, ?type=, ?category=, ?search=)
GET /api/notifications/unread-count Unread counter
GET /api/notifications/stats Totals by state and type
POST /api/notifications/{id}/read Mark as read
POST /api/notifications/read-all Mark all as read
POST /api/notifications/{id}/pin Toggle pin
POST /api/notifications/{id}/archive Archive
POST /api/notifications/{id}/unarchive Unarchive
DELETE /api/notifications/{id} Soft delete
POST /api/notifications/{id}/restore Undo delete
GET /api/notifications/preferences Get user preferences
PUT /api/notifications/preferences Update user preferences

All endpoints operate strictly on the authenticated user's own notifications.

History page

A full-page notification center at /notifications/history with search, filters (status, type, category, period), pin/archive actions and incremental loading. Linked from the bell's "View all" footer. Disable with 'features' => ['history_page' => false].

Admin panel

Comprehensive management panel at /notifications (configurable): create/edit/delete, filters, send to one or all users, bulk actions, stats — fully redesigned with self-contained CSS.

Localization

Ships with English (default) and Brazilian Portuguese. By default the component follows app()->getLocale(), falling back to English. To force a language regardless of the app locale:

Or per component instance:

This applies to every text in the bell, history page and admin panel — including relative dates ("há 4 meses" instead of "4 months ago"). To customize the strings:

Sounds

Generated with the Web Audio API (no audio files) — unique tones per type — or bring your own file:

Browsers may block audio until the user interacts with the page (standard autoplay policy).

Artisan commands

Schedule cleanup in routes/console.php (or Kernel.php on older versions):

Queues

Notifications are processed through Laravel queues by default. Run a worker:

Or bypass per call with 'queue' => false in the options array.

Testing

The suite uses Orchestra Testbench with in-memory SQLite — no app scaffolding required.

Deploy safety

The package is designed to never take a production page down:

Feature toggles

Every user-facing capability can be turned off individually:

Upgrading from 1.x

License

MIT License - see the LICENSE file for details.


All versions of notification-bell with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
illuminate/support Version ^10.0|^11.0|^12.0|^13.0
livewire/livewire Version ^3.5.0|^4.0.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 caiquebispo/notification-bell contains the following files

Loading the files please wait ...