marko/notification-database

Database-backed notification storage for the Marko Framework

Maintainers

Package info

github.com/marko-php/marko-notification-database

Type:marko-module

pkg:composer/marko/notification-database

Statistics

Installs: 4

Dependents: 0

Suggesters: 0

Stars: 0

0.0.1 2026-03-25 17:53 UTC

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