{"id":19325411,"url":"https://github.com/krypt0nn/progressbar","last_synced_at":"2025-10-07T06:43:51.235Z","repository":{"id":57009450,"uuid":"183687662","full_name":"krypt0nn/ProgressBar","owner":"krypt0nn","description":"Прогресс бар для консолей на PHP","archived":false,"fork":false,"pushed_at":"2021-04-03T18:25:23.000Z","size":24,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-01T21:09:54.525Z","etag":null,"topics":["cli","php"],"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/krypt0nn.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":"2019-04-26T20:05:09.000Z","updated_at":"2021-07-31T19:27:20.000Z","dependencies_parsed_at":"2022-08-21T13:10:11.638Z","dependency_job_id":null,"html_url":"https://github.com/krypt0nn/ProgressBar","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/krypt0nn/ProgressBar","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krypt0nn%2FProgressBar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krypt0nn%2FProgressBar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krypt0nn%2FProgressBar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krypt0nn%2FProgressBar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/krypt0nn","download_url":"https://codeload.github.com/krypt0nn/ProgressBar/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krypt0nn%2FProgressBar/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278734435,"owners_count":26036404,"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","status":"online","status_checked_at":"2025-10-07T02:00:06.786Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["cli","php"],"created_at":"2024-11-10T02:09:59.190Z","updated_at":"2025-10-07T06:43:51.218Z","avatar_url":"https://github.com/krypt0nn.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e🚀 ProgressBar\u003c/h1\u003e\n\n**ProgressBar** - небольшая библиотека для реализаци прогресс баров на PHP CLI\n\n## Установка\n\n```\ncomposer require krypt0nn/progressbar\n```\n\n## Пример работы\n\n```php\n\u003c?php\n\nuse ProgressBar\\ProgressBar;\n\n$begin = microtime (true);\n\n$progress = new ProgressBar (100000, 48, ' ', function ($actual, $max) use ($begin)\n{\n    $seconds  = round (($time = (microtime (true) - $begin)) * ($max - $actual) / max ($actual, 1));\n    $hours    = (int)($seconds / 3600);\n    $minutes  = (int)(($seconds - $hours * 3600) / 60);\n    $seconds -= $hours * 3600 + $minutes * 60;\n\n    $hours   = $hours   \u003e 9 ? $hours   : \"0$hours\";\n    $minutes = $minutes \u003e 9 ? $minutes : \"0$minutes\";\n    $seconds = $seconds \u003e 9 ? $seconds : \"0$seconds\";\n\n    return \" Remained: $hours:$minutes:$seconds, speed: \". round ($actual / $time, 2) .' IPS';\n}, '█');\n\nfor ($i = 1; $i \u003c= 100000; ++$i)\n    $progress-\u003eupdate ($i); // Обновляем прогресс бар\n\n$progress-\u003eclear (); // Удаляем прогресс бар из консоли (так же не обязательно)\n```\n\nАвтор: [Подвирный Никита](https://vk.com/technomindlp)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrypt0nn%2Fprogressbar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkrypt0nn%2Fprogressbar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrypt0nn%2Fprogressbar/lists"}