{"id":15025721,"url":"https://github.com/phpbadge/phpbadge","last_synced_at":"2025-04-09T20:04:11.265Z","repository":{"id":30915964,"uuid":"34473830","full_name":"phpbadge/phpbadge","owner":"phpbadge","description":"A PHP library to build badges as seen in README's of many open source libraries.","archived":false,"fork":false,"pushed_at":"2019-02-22T10:29:26.000Z","size":181,"stargazers_count":25,"open_issues_count":1,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-09T20:04:06.350Z","etag":null,"topics":["badge","php","php71","phpbadge","svg"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/phpbadge.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":"2015-04-23T18:23:34.000Z","updated_at":"2025-02-16T04:30:59.000Z","dependencies_parsed_at":"2022-08-24T00:50:54.782Z","dependency_job_id":null,"html_url":"https://github.com/phpbadge/phpbadge","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/phpbadge%2Fphpbadge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phpbadge%2Fphpbadge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phpbadge%2Fphpbadge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phpbadge%2Fphpbadge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phpbadge","download_url":"https://codeload.github.com/phpbadge/phpbadge/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248103865,"owners_count":21048245,"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":["badge","php","php71","phpbadge","svg"],"created_at":"2024-09-24T20:02:53.974Z","updated_at":"2025-04-09T20:04:11.236Z","avatar_url":"https://github.com/phpbadge.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# phpbadge\n\n[![Build Status](https://travis-ci.org/phpbadge/phpbadge.svg?branch=master)](https://travis-ci.org/phpbadge/phpbadge)\n[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/phpbadge/phpbadge/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/phpbadge/phpbadge/?branch=master)\n[![Code Coverage](https://scrutinizer-ci.com/g/phpbadge/phpbadge/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/phpbadge/phpbadge/?branch=master)\n[![Dependency Status](https://www.versioneye.com/user/projects/55394d401d2989cb7800001d/badge.svg?style=flat)](https://www.versioneye.com/user/projects/55394d401d2989cb7800001d)\n[![SensioLabsInsight](https://insight.sensiolabs.com/projects/1c61e728-9b88-4e82-9d95-f91dc4cd6b93/mini.png)](https://insight.sensiolabs.com/projects/1c61e728-9b88-4e82-9d95-f91dc4cd6b93)\n\nA PHP library to build badges as seen in README's of many open source libraries.\n\n## Getting started\n\nIt's recommended to install this library via [Composer](https://getcomposer.org).\n\n```bash\ncomposer require phpbadge/phpbadge\n```\n\nThe current master branch is considered stable. The badges on top of this document should confirm this.\n\n## Requirements\n\nAs from version 2.0.0 this library needs a PHP version \u003e= 7.1.\n\nOlder version of the library run on PHP 5.3, PHP 5.4, PHP 5.5, PHP 5.6, PHP 7 and HHVM.\n\n## Example\n\n```php\n\u003c?php\n\nuse PHP\\Badge\\Badge;\nuse PHP\\Badge\\Font\\Font;\nuse PHP\\Badge\\Font\\GdDimensionCalculator;\nuse PHP\\Badge\\Part;\nuse PHP\\Badge\\Renderer\\SvgRenderer;\n\nrequire 'vendor/autoload.php';\n\n$badge = new Badge();\n$badge-\u003esetBorderRadius(3);\n$badge-\u003eaddPart(new Part('build', '#555', '#fff', new Font(11, 'verdana', 'fonts/verdana.ttf')));\n$badge-\u003eaddPart(new Part('passing', '#4c1', '#fff', new Font(11, 'verdana', 'fonts/verdana.ttf')));\n\n$renderer = new SvgRenderer(new GdDimensionCalculator());\n\necho $renderer-\u003erender($badge);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphpbadge%2Fphpbadge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphpbadge%2Fphpbadge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphpbadge%2Fphpbadge/lists"}