consoletvs / progresser
Add progress to your laravel application
Installs: 1 935
Dependents: 0
Suggesters: 0
Security: 0
Stars: 7
Watchers: 3
Forks: 2
Open Issues: 1
Requires
- illuminate/database: ^8.46
- illuminate/support: ^8.46
Requires (Dev)
- orchestra/testbench: ^6.18
- phpunit/phpunit: ^9.5
README
Adds progress to your laravel application.
$progress = Progress::create(); // Control methods $progress->start('Preparing information...'); $progress->step('Done task 1'); $progress->status('Now doing this...'); $progress->complete('Done task 2'); $progress->fail('Failed at task 2'); // Methods $progress->isRunning(); $progress->hasFailed(); $progress->hasCompleted(); $progress->hasSteps(); $progress->percentage(); // Attributes $progress->status; $progress->current_step; $progress->steps; $progress->running; $progress->failed; $progress->failed_payload; $progress->default_completed_status; $progress->default_failed_status;
$progress = Progress::create(); $progress->start('Preparing information...'); $progress->step('Done task 1'); $progress->complete('Done task 2');
$progress = Progress::create(); $progress->start('Preparing information...', 2); $progress->step('Done task 1'); $progress->step('Done task 2');
$progress = Progress::create(); $progress->start('Preparing information...'); $progress->step('Done task 1'); $progress->fail('Done task 2');
use Illuminate\Database\Eloquent\Model; use ConsoleTVs\Progresser\Traits\Progressable; class Book extends Model { use Progressable; } $book = Book::create(); $progress = $book->progress('review'); $progress->start('Starting book review...'); $progress->complete('Finished review...');