marceloanjosdev/filament-progress-bar 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

marceloanjosdev/filament-progress-bar

最新稳定版本:v0.1.0

Composer 安装命令:

composer require marceloanjosdev/filament-progress-bar

包简介

A simple and easy to user Progress Bar

README 文档

README

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

A simple, global and non-intrusive progress bar system for Filament.

This package allows you to track long-running processes (jobs, imports, exports, background tasks) and display their progress globally in the Filament admin panel, without wiring Livewire components or custom widgets per page.

It is designed to be:

  • Simple (explicit API: init → update → complete)
  • Safe for queued jobs
  • Cache-based (Redis optional, not required)
  • Filament-native (top bar overlay, polling handled automatically)

Features

  • Global progress bar overlay in Filament
  • Multiple simultaneous progress bars
  • Determinate and indeterminate progress
  • Auto-polling only when progress bars are active
  • Safe default behaviour for queued jobs
  • No Redis requirement (uses Laravel cache)
  • Redis-ready if you want it later

Installation

Install the package via Composer:

composer require marceloanjosdev/filament-progress-bar

Publish the configuration file:

php artisan vendor:publish --tag="filament-progress-bar-config"

No migrations are required.

Configuration

This is the default configuration file:

return [
    'cache_store' => null,

    'key_prefix' => 'filament-progress-bar',

    'ttl_seconds' => 3600,

    'display' => [
        /*
         | Available options:
         | - 'percent'  → 75%
         | - 'total'    → 75/100
         | - 'both'     → 75/100 · 75%
         */
        'meta' => 'both',
    ],

    'polling' => [
        'enabled' => true,

        // When there are no bars
        'idle_interval_ms' => 5000,

        // When there is at least one bar
        'active_interval_ms' => 1000,

        // Route & middleware for the internal endpoint used by the Filament UI
        'route' => '/filament-progress-bar/progress',
        'middleware' => ['web', 'auth'],
    ],
];

Usage

   app(ProgressManager::class)->init(
       key: 'progress:one',
       totalRecords: 100,
       autoComplete: true,
       label: 'Import Clients'
    );

    app(ProgressManager::class)->update('progress:one');

    app(ProgressManager::class)->complete('progress:one');

Testing

composer test

License

MIT License.

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-20

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固