ibrahim-bougaoua/filaprogress
最新稳定版本:v0.1
Composer 安装命令:
composer require ibrahim-bougaoua/filaprogress
包简介
This is my package filaprogress
README 文档
README
The Progress Management Package for FilamentPHP provides a flexible and easy-to-use solution for tracking and visualizing progress within Filament admin panels. It includes custom Filament components for displaying linear and circular progress indicators directly in your admin interface. This package is designed to seamlessly integrate with Filament's existing tools, offering dynamic and customizable progress bars and circles to represent task completion, project milestones, or any metric that requires visual progress tracking. Perfect for enhancing the user experience in admin dashboards with intuitive, real-time progress displays.
Support us
Installation
You can install the package via composer:
composer require ibrahim-bougaoua/filaprogress
Optionally, you can publish the views using
php artisan vendor:publish --tag="filaprogress-views"
Usage
// For infolist use IbrahimBougaoua\FilaProgress\Infolists\Components\CircleProgressEntry; use IbrahimBougaoua\FilaProgress\Infolists\Components\ProgressBarEntry; return $infolist ->schema([ CircleProgressEntry::make('circle') ->getStateUsing(function ($record) { $total = $record->items()->count(); $progress = $record->countPaidItems(); return [ 'total' => $total, 'progress' => $progress, ]; }) ->hideProgressValue(), ProgressBarEntry::make('bar') ->getStateUsing(function ($record) { $total = $record->items()->count(); $progress = $record->countPaidItems(); return [ 'total' => $total, 'progress' => $progress, ]; }) ->hideProgressValue(),
// For table use IbrahimBougaoua\FilaProgress\Tables\Columns\CircleProgress; use IbrahimBougaoua\FilaProgress\Tables\Columns\ProgressBar; return $table ->columns([ CircleProgress::make('circle') ->getStateUsing(function ($record) { $total = $record->items()->count(); $progress = $record->countPaidItems(); return [ 'total' => $total, 'progress' => $progress, ]; }) ->hideProgressValue(), ProgressBar::make('bar') ->getStateUsing(function ($record) { $total = $record->items()->count(); $progress = $record->countPaidItems(); return [ 'total' => $total, 'progress' => $progress, ]; }) ->hideProgressValue(),
Testing
composer test
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- [Ibrahim Bougaoua](https://github.com/Ibrahim Bougaoua)
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 54.66k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 34
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-09-03
