Search by

yugo / filament-quran

yugo

A configurable Quran provider and Filament dashboard widget.

Package info

github.com/yugo412/filament-quran

pkg:composer/yugo/filament-quran

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 4

dev-main 2026-09-17 14:24 UTC

README

Filament Quran provides a Quran dashboard widget for Laravel Filament applications.

Quran data is provided by Yugo Quran Manager, a standalone Laravel package that can also be used outside Filament.

Installation

Install the package with Composer:

composer require yugo/filament-quran

Register the plugin in the Filament panel provider:

use Filament\Panel;
use Yugo\FilamentQuran\FilamentQuranPlugin;

public function panel(Panel $panel): Panel
{
    return $panel
        ->plugins([
            FilamentQuranPlugin::make(),
        ]);
}

Publish the configuration file when you need to customize the defaults:

php artisan vendor:publish --tag=filament-quran-config

Publish Filament assets after installing or updating the package:

php artisan filament:assets

The plugin adds the Quran widget to the configured Filament dashboard.

Configuration

Widget settings are configured through environment variables:

FILAMENT_QURAN_WIDGET_COLUMN_SPAN=full
FILAMENT_QURAN_WIDGET_DISPLAY_MODE=single

For complete installation instructions, provider configuration, caching, the Quran facade, and custom provider usage, see the Yugo Quran Manager README.

Set FILAMENT_QURAN_WIDGET_DISPLAY_MODE to all to display every verse in the active surah:

FILAMENT_QURAN_WIDGET_DISPLAY_MODE=all

The default single mode displays one verse at a time with surah and verse navigation.

The widget selects a translation using the application's locale. If that locale is unavailable, it falls back to Indonesian and then to the first available translation.