{"id":23176480,"url":"https://github.com/lajosbencz/php-progress-bar","last_synced_at":"2025-08-18T10:32:24.858Z","repository":{"id":57010782,"uuid":"236041988","full_name":"lajosbencz/php-progress-bar","owner":"lajosbencz","description":"Simple CLI progress bar for PHP","archived":false,"fork":false,"pushed_at":"2020-01-27T13:41:26.000Z","size":33,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-08-15T16:11:32.046Z","etag":null,"topics":["ansi","cli","php","progressbar","terminal"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lajosbencz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-01-24T16:42:18.000Z","updated_at":"2022-11-25T17:08:51.000Z","dependencies_parsed_at":"2022-08-21T15:10:12.516Z","dependency_job_id":null,"html_url":"https://github.com/lajosbencz/php-progress-bar","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lajosbencz%2Fphp-progress-bar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lajosbencz%2Fphp-progress-bar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lajosbencz%2Fphp-progress-bar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lajosbencz%2Fphp-progress-bar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lajosbencz","download_url":"https://codeload.github.com/lajosbencz/php-progress-bar/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230225630,"owners_count":18193015,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ansi","cli","php","progressbar","terminal"],"created_at":"2024-12-18T06:16:55.330Z","updated_at":"2024-12-18T06:16:55.925Z","avatar_url":"https://github.com/lajosbencz.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# php-progress-bar\n [![Build Status](https://travis-ci.com/lajosbencz/php-progress-bar.svg?branch=master)](https://travis-ci.com/lajosbencz/php-progress-bar)\n [![Code Coverage](https://codecov.io/gh/lajosbencz/php-progress-bar/branch/master/graph/badge.svg)](https://codecov.io/gh/lajosbencz/php-progress-bar/branch/master)\n    \nExtensible ANSI (only for terminals) progress bar for PHP\n\n\n## Install\n```bash\ncomposer require --save lajosbencz/progress-bar\n```\n\n## Default usage\n```php\nuse LajosBencz\\ProgressBar;\n\n$pb = ProgressBar\\Factory::createDefault(10);\n\nfor($i=0; $i\u003c10; $i++) {\n    sleep(1);\n    $pb($i + 1);\n}\n```\n\n## Customized usage\n```php\nuse LajosBencz\\ProgressBar;\n\n$pb = new ProgressBar\\ProgressBar(10);\n$pb-\u003esetFormatterClass(ProgressBar\\Formatter\\SimpleFormatter::class, [60]);\n$pb-\u003esetOutput(STDOUT);\n\nfor($i=0; $i\u003c10; $i++) {\n    sleep(1);\n    $pb($i + 1);\n}\n```\n\n## Factory usage\n```php\nuse LajosBencz\\ProgressBar;\n\n$pbf = new ProgressBar\\Factory(\n    // formatter class name:\n    ProgressBar\\Formatter\\SimpleFormatter::class,\n    // formatter args, will be passed into the constructor:\n    [10, \"|O-|\"],\n    // output stream to write to:\n    STDERR\n);\n\n$pb = $pbf-\u003ecreate(10);\nfor($i=0; $i\u003c10; $i++) {\n    sleep(1);\n    $pb($i + 1);\n}\n```\n\n## TODO\n - Comments\n - Interface with PSR logging facility\n - Meaningful tests\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flajosbencz%2Fphp-progress-bar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flajosbencz%2Fphp-progress-bar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flajosbencz%2Fphp-progress-bar/lists"}