ibrahim-bougaoua / filaprogress
This is my package filaprogress
Fund package maintenance!
IbrahimBougaoua
Installs: 2 323
Dependents: 0
Suggesters: 0
Security: 0
Stars: 7
Watchers: 1
Forks: 0
Open Issues: 0
Language:Blade
Requires
- php: ^8.2
- illuminate/contracts: ^10.0||^11.0
- spatie/laravel-package-tools: ^1.16
Requires (Dev)
- larastan/larastan: ^2.9
- laravel/pint: ^1.14
- nunomaduro/collision: ^8.1.1||^7.10.0
- orchestra/testbench: ^9.0.0||^8.22.0
- pestphp/pest: ^2.34
- pestphp/pest-plugin-arch: ^2.7
- pestphp/pest-plugin-laravel: ^2.3
- phpstan/extension-installer: ^1.3
- phpstan/phpstan-deprecation-rules: ^1.1
- phpstan/phpstan-phpunit: ^1.3
- spatie/laravel-ray: ^1.35
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.