{"id":16603373,"url":"https://github.com/dbrgn/gd-progressbar","last_synced_at":"2025-08-09T07:05:46.597Z","repository":{"id":66130032,"uuid":"2320743","full_name":"dbrgn/gd-progressbar","owner":"dbrgn","description":"A progressbar class for PHP using GDLib","archived":false,"fork":false,"pushed_at":"2012-12-28T12:09:07.000Z","size":100,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-26T20:36:57.460Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dbrgn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-09-03T21:21:25.000Z","updated_at":"2019-05-05T22:09:20.000Z","dependencies_parsed_at":"2023-02-19T22:55:24.639Z","dependency_job_id":null,"html_url":"https://github.com/dbrgn/gd-progressbar","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dbrgn/gd-progressbar","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbrgn%2Fgd-progressbar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbrgn%2Fgd-progressbar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbrgn%2Fgd-progressbar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbrgn%2Fgd-progressbar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dbrgn","download_url":"https://codeload.github.com/dbrgn/gd-progressbar/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbrgn%2Fgd-progressbar/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268322440,"owners_count":24231819,"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-08-01T02:00:08.611Z","response_time":67,"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":[],"created_at":"2024-10-12T00:49:48.804Z","updated_at":"2025-08-09T07:05:46.506Z","avatar_url":"https://github.com/dbrgn.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"gd-progressbar\n==============\n\nThis is a simple PHP class that I created some time ago. It does nothing fancy, just creating a\nsimple GD based progress bar. Probably there are many other classes like this out there :)\n\nUsage\n-----\n\nConstructor:\n\n    function __construct($curVal, $maxVal=100, $width=500, $height=20, $absVal=false, $suffix='')\n\nMethods:\n\n    public function setValue($curVal, $maxVal=100)\n    public function setSize($width, $height)\n    public function setSuffix($suffix)\n    public function setAbsVal($absVal)\n    public function setBackgroundColor($r, $g, $b)\n    public function setBorderColor($r, $g, $b)\n    public function setProgressColor($r, $g, $b)\n    public function setFontColor($r, $g, $b)\n    public function draw()\n\nFor further information, see source documentation.\n\nExamples\n--------\n\n```php\n\u003c?php\nrequire_once('progressbar.class.php');\n$p = new progressBar(42);\n$p-\u003edraw();\n?\u003e\n```\n\n![Example 1](http://github.com/dbrgn/gd-progressbar/raw/master/example1.png)\n\n```php\n\u003c?php\nrequire_once('progressbar.class.php');\n$p = new progressBar();\n$p-\u003esetValue(275, 900);\n$p-\u003edraw();\n?\u003e\n```\n\n![Example 2](http://github.com/dbrgn/gd-progressbar/raw/master/example2.png)\n\n```php\n\u003c?php\nrequire_once('progressbar.class.php');\n$p = new progressBar(17, 31, 400, 60);\n$p-\u003esetAbsVal(true);\n$p-\u003esetSuffix('days');\n$p-\u003esetProgressColor(100, 150, 200);\n$p-\u003esetFontColor(220, 220, 255);\n$p-\u003esetBackgroundColor(220, 220, 255);\n$p-\u003edraw();\n?\u003e\n```\n\n![Example 3](http://github.com/dbrgn/gd-progressbar/raw/master/example3.png)\n\nLicense\n-------\n\nLGPLv3 http://www.gnu.org/licenses/lgpl.html\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdbrgn%2Fgd-progressbar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdbrgn%2Fgd-progressbar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdbrgn%2Fgd-progressbar/lists"}