Download the PHP package elipettingale/laravel-progress-command without Composer
On this page you can find all versions of the php package elipettingale/laravel-progress-command. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download elipettingale/laravel-progress-command
More information about elipettingale/laravel-progress-command
Files in elipettingale/laravel-progress-command
Download elipettingale/laravel-progress-command
More information about elipettingale/laravel-progress-command
Files in elipettingale/laravel-progress-command
Vendor elipettingale
Package laravel-progress-command
Short Description A simple command which outputs progress bars to the console.
License MIT
Package laravel-progress-command
Short Description A simple command which outputs progress bars to the console.
License MIT
Please rate this library. Is it a good library?
Informations about the package laravel-progress-command
Laravel Progress Command
A simple command which outputs progress bars to the console.
Will output various progress bars which will be updated depending on the key returned by the the fireItem() function.
Example
class TestCommand extends ProgressCommand implements HasInfoBar
{
protected $signature = 'test-command';
protected function getItems()
{
return ['One', 'Two', 'Three', 'Four', 'Five', 'Six', 'Seven', 'Eight', 'Nine', 'Ten'];
}
protected function fireItem($item): string
{
sleep(1);
return array_random(['success', 'error']);
}
public function getItemIdentifier($item): string
{
return $item;
}
protected function getProgressBarBlueprints(): array
{
return [
new ProgressBarBlueprint('success', 'Success', [
'foreground' => 'green'
]),
new ProgressBarBlueprint('error', 'Error', [
'foreground' => 'red'
])
];
}
}
ProgressBarBlueprint
These are how you define the progress bars that get printed to the console. Each blueprint must have a 'key', which is used to identify which progress bar to increment by the fireItem method, and a 'description' which is free text that is used as a label for the progress bar.
All versions of laravel-progress-command with dependencies
PHP Build Version
Package Version
Requires
laravel/framework Version
^5.4|^5.5|^5.6
php Version ^7.0
elipettingale/microtime-converter Version ^1.1
php Version ^7.0
elipettingale/microtime-converter Version ^1.1
The package elipettingale/laravel-progress-command contains the following files
Loading the files please wait ....