locr-company / progress
A class for handling progress
Installs: 541
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 4
pkg:composer/locr-company/progress
Requires
- php: >=8.1
Requires (Dev)
- captainhook/captainhook: ^5.23
- captainhook/hook-installer: ^1.0
- php-parallel-lint/php-parallel-lint: ^1.4
- phpstan/extension-installer: ^1.4
- phpstan/phpstan: ^2.0
- phpstan/phpstan-deprecation-rules: ^2.0
- phpunit/phpunit: ^10.5
- slevomat/coding-standard: ^8.15
- squizlabs/php_codesniffer: ^3.11
- dev-main
- 1.1.3
- 1.1.2
- 1.1.1
- 1.1.0
- 1.0.0
- dev-dependabot/composer/phpstan/phpstan-2.1.30
- dev-dependabot/composer/phpstan/phpstan-2.1.29
- dev-dependabot/composer/slevomat/coding-standard-8.22.1
- dev-dependabot/composer/squizlabs/php_codesniffer-3.13.4
- dev-dependabot/composer/captainhook/captainhook-5.25.11
This package is auto-updated.
Last update: 2025-10-06 15:25:02 UTC
README
1. Installation
composer require locr-company/progress
2. How to use
<?php use Locr\Lib\Progress; $progress = new Progress(totalCount: 1_000); $progress->incrementCounter(); print $progress->Counter; // 1 print $progress->PercentageCompleted; // 0.1 print $progress->toFormattedString(); // progress => 1/1000 (0.10%); elapsed: 00:00:01; ete: 00:16:39; eta: 2021-10-10 20:00:01 $progress->setCounter(1000); print $progress->PercentageCompleted; // 100
3. Development
Clone the repository
git clone git@github.com:locr-company/php-progress.git cd php-progress && composer install
4. Publish a new version
# update CHANGELOG.md file git tag -a <major>.<minor>.<patch> -m 'version <major>.<minor>.<patch>' git push git push origin --tags