{"id":15984895,"url":"https://github.com/divineomega/php-cli-progress-bar","last_synced_at":"2025-03-17T15:32:22.727Z","repository":{"id":56969652,"uuid":"130364818","full_name":"DivineOmega/php-cli-progress-bar","owner":"DivineOmega","description":"⏱️ Progress bar for command line PHP scripts","archived":false,"fork":false,"pushed_at":"2020-02-06T22:00:07.000Z","size":177,"stargazers_count":16,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-15T02:37:42.246Z","etag":null,"topics":["command-line","php","php-library","progress-bar"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DivineOmega.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":"2018-04-20T13:19:29.000Z","updated_at":"2023-04-19T06:47:30.000Z","dependencies_parsed_at":"2022-08-21T10:50:56.630Z","dependency_job_id":null,"html_url":"https://github.com/DivineOmega/php-cli-progress-bar","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DivineOmega%2Fphp-cli-progress-bar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DivineOmega%2Fphp-cli-progress-bar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DivineOmega%2Fphp-cli-progress-bar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DivineOmega%2Fphp-cli-progress-bar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DivineOmega","download_url":"https://codeload.github.com/DivineOmega/php-cli-progress-bar/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221696167,"owners_count":16865369,"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":["command-line","php","php-library","progress-bar"],"created_at":"2024-10-08T02:11:09.680Z","updated_at":"2024-10-27T15:14:12.595Z","avatar_url":"https://github.com/DivineOmega.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ⏱ PHP CLI Progress Bar\n\nProgress bar for command line PHP scripts.\n\n\u003cimg alt=\"Example of PHP CLI Progress Bar\" src=\"assets/images/php-cli-progress-bar-example.gif\" /\u003e\n\n## Installation\n\nTo install, just run the following Composer command.\n\n```\ncomposer require divineomega/php-cli-progress-bar\n```\n\n## Usage\n\nThe following code snippet shows a basic usage example.\n\n```php\n$max = 250;\n\n$progressBar = new DivineOmega\\CliProgressBar\\ProgressBar;\n$progressBar-\u003esetMaxProgress($max);\n\nfor ($i=0; $i \u003c $max; $i++) { \n    usleep(200000); // Instead of usleep, process a part of your long running task here.\n    $progressBar-\u003eadvance()-\u003edisplay();\n}\n\n$progressBar-\u003ecomplete();\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdivineomega%2Fphp-cli-progress-bar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdivineomega%2Fphp-cli-progress-bar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdivineomega%2Fphp-cli-progress-bar/lists"}