marko / notification-database
Database-backed notification storage for the Marko Framework
Package info
github.com/marko-php/marko-notification-database
Type:marko-module
pkg:composer/marko/notification-database
0.0.1
2026-03-25 17:53 UTC
Requires
- php: ^8.5
- marko/core: 0.0.1
- marko/database: 0.0.1
- marko/notification: 0.0.1
Requires (Dev)
- pestphp/pest: ^4.0
This package is auto-updated.
Last update: 2026-03-25 21:07:19 UTC
README
Database notification storage — persist, query, and manage notification read state in the database.
Installation
composer require marko/notification-database
Quick Example
use Marko\Notification\Database\Repository\NotificationRepositoryInterface; public function __construct( private NotificationRepositoryInterface $notificationRepository, ) {} // Fetch all notifications for a user $notifications = $this->notificationRepository->forNotifiable($user); // Count unread $count = $this->notificationRepository->unreadCount($user); // Mark all as read $this->notificationRepository->markAllAsRead($user);
Documentation
Full usage, API reference, and examples: marko/notification-database