PHPackages                             yakeing/php\_badge - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. yakeing/php\_badge

AbandonedArchivedSymfony-bundle[Utility &amp; Helpers](/categories/utility)

yakeing/php\_badge
==================

This is an identification tag based on SVG.

v5.0(6y ago)1831212MPL-2.0PHPPHP &gt;=5.6

Since Aug 5Pushed 4y ago2 watchersCompare

[ Source](https://github.com/yakeing/php_badge)[ Packagist](https://packagist.org/packages/yakeing/php_badge)[ Docs](https://github.com/yakeing/php_badge)[ RSS](/packages/yakeing-php-badge/feed)WikiDiscussions main Synced 3d ago

READMEChangelog (5)Dependencies (1)Versions (6)Used By (0)

Badge
=====

[](#badge)

This is an identification tag based on SVG, It can quickly generate various labels and status identifiers.

### v5.0.0 New version testing

[](#v500-new-version-testing)

The new border mode can also customize the border color, redesign and adjust the fillet of the badge to make it look more stereoscopic, and add new functions to optimize the program code.

[![Sponsor](https://camo.githubusercontent.com/951d2190724684227093104c658e5afd1cb8097f71a22421af05a81b2874ae63/68747470733a2f2f342e76657263656c2e6170702f7374617469632f436f6c6f722f3535352f5265642f4630302f4f72616e67652f4646374635302f59656c6c6f772f6666643430302f477265656e2f3443312f4379616e2f3030643662392f426c75652f6130616266632f56696f6c65742f6438303064383f69636f6e3d636f6c6f72267374726f6b653d353535)](https://camo.githubusercontent.com/951d2190724684227093104c658e5afd1cb8097f71a22421af05a81b2874ae63/68747470733a2f2f342e76657263656c2e6170702f7374617469632f436f6c6f722f3535352f5265642f4630302f4f72616e67652f4646374635302f59656c6c6f772f6666643430302f477265656e2f3443312f4379616e2f3030643662392f426c75652f6130616266632f56696f6c65742f6438303064383f69636f6e3d636f6c6f72267374726f6b653d353535)

test example:

```
    https://org.vercel.app
```

### Sponsors Example

[](#sponsors-example)

[![Heart](https://camo.githubusercontent.com/c1c391a031231d0bf2ddb3c5808e562f9fcd33eb064b86a21c8585f6b8951353/68747470733a2f2f342e76657263656c2e6170702f7374617469632f48656172742f4541344141413f69636f6e3d6865617274)](https://github.com/yakeing/Documentation/blob/master/Sponsor/README.md)[![Sponsor](https://camo.githubusercontent.com/8148e674c69ec30643b7fdab23ab97492eb9541252acb779e921fd1c43613b9a/68747470733a2f2f342e76657263656c2e6170702f7374617469632f53706f6e736f722f4541344141413f69636f6e3d73706f6e736f72)](https://github.com/yakeing/Documentation/blob/master/Sponsor/README.md)

```
    $Badge->Icon = file_get_contents({LOGO}); //
    array(
     array({MESSAGE},{COLOR})
    );
```

---

### Hits Example

[](#hits-example)

[![Hits](https://camo.githubusercontent.com/67ad65e9ccf0174283780d9b24e8e0dd0c066f6dc5f70d5cfe29d4c2bac55a35/68747470733a2f2f342e76657263656c2e6170702f7374617469632f686974732f3535352f383838572f346331)](https://camo.githubusercontent.com/67ad65e9ccf0174283780d9b24e8e0dd0c066f6dc5f70d5cfe29d4c2bac55a35/68747470733a2f2f342e76657263656c2e6170702f7374617469632f686974732f3535352f383838572f346331)

```
    //https://example.com/Hits/{USERNAME}/{PROJECT}/image.svg

    ++$count;
    array(
     array('hits','555555'),
     array($count,'4C1')
    );
```

---

### Server Example

[](#server-example)

[![Server](https://camo.githubusercontent.com/46232b50b515a4921b4f848a9eebd3563c2bcd632f67a4442c81640c262c45a9/68747470733a2f2f342e76657263656c2e6170702f7374617469632f4c696e75782532305838365f36342f3535352f4350553a32302532352f4130414246432f52414d3a31352532352f4630413031303f69636f6e3d6c696e7578)](https://camo.githubusercontent.com/46232b50b515a4921b4f848a9eebd3563c2bcd632f67a4442c81640c262c45a9/68747470733a2f2f342e76657263656c2e6170702f7374617469632f4c696e75782532305838365f36342f3535352f4350553a32302532352f4130414246432f52414d3a31352532352f4630413031303f69636f6e3d6c696e7578)

```
    //https://example.com/Server/{USERNAME}/{PROJECT}/image.svg

    array(
     array('{OS}','555555'),
     array('CPU: {CPU}','A0ABFC'),
     array('RAM: {RAM}','F0A010')
    );
```

---

### State Example

[](#state-example)

[![error](https://camo.githubusercontent.com/b4b0715a7acbeaefec357d563edf2763cebe2a63d7877eb6fb3c1d45d2ba1fb3/68747470733a2f2f342e76657263656c2e6170702f7374617469632f4552524f522f6564313934313f69636f6e3d6572726f72)](https://camo.githubusercontent.com/b4b0715a7acbeaefec357d563edf2763cebe2a63d7877eb6fb3c1d45d2ba1fb3/68747470733a2f2f342e76657263656c2e6170702f7374617469632f4552524f522f6564313934313f69636f6e3d6572726f72)[![Active](https://camo.githubusercontent.com/f9a53a185afeeaf2733ee89bff29e95c9bf3d18a156cd4e77e31544ca96babde/68747470733a2f2f342e76657263656c2e6170702f7374617469632f4163746976652f3238613734353f69636f6e3d726f636b6574)](https://camo.githubusercontent.com/f9a53a185afeeaf2733ee89bff29e95c9bf3d18a156cd4e77e31544ca96babde/68747470733a2f2f342e76657263656c2e6170702f7374617469632f4163746976652f3238613734353f69636f6e3d726f636b6574)[![PAGES](https://camo.githubusercontent.com/f57bd8a6436098cfe111ee37dc980257fec9e1a4e2c91c13b94f1741ba6db9bc/68747470733a2f2f342e76657263656c2e6170702f7374617469632f50414745532f6561346338393f69636f6e3d676974687562)](https://camo.githubusercontent.com/f57bd8a6436098cfe111ee37dc980257fec9e1a4e2c91c13b94f1741ba6db9bc/68747470733a2f2f342e76657263656c2e6170702f7374617469632f50414745532f6561346338393f69636f6e3d676974687562)[![thumb](https://camo.githubusercontent.com/b136c0300e9242e07d400fb2a64ae31150bf380e4cb7e4a1e48dd93fd456e8aa/68747470733a2f2f342e76657263656c2e6170702f7374617469632f383838572f3633364144303f69636f6e3d7468756d62)](https://camo.githubusercontent.com/b136c0300e9242e07d400fb2a64ae31150bf380e4cb7e4a1e48dd93fd456e8aa/68747470733a2f2f342e76657263656c2e6170702f7374617469632f383838572f3633364144303f69636f6e3d7468756d62)[![passed](https://camo.githubusercontent.com/d5f32e049492e9cf68cbca2cbe7b87508d0898f0d4c594e751154fc5fbfdca51/68747470733a2f2f342e76657263656c2e6170702f7374617469632f5041535345442f3434434331313f69636f6e3d706173736564)](https://camo.githubusercontent.com/d5f32e049492e9cf68cbca2cbe7b87508d0898f0d4c594e751154fc5fbfdca51/68747470733a2f2f342e76657263656c2e6170702f7374617469632f5041535345442f3434434331313f69636f6e3d706173736564)

```
    //https://example.com/Label/{LOGO}/{MESSAGE}/{COLOR}.svg

    //get logo file
    $Badge->Icon = file_get_contents({LOGO}); //
    $Badge->viewBox = '-120 -85 1200 1200'; //Svg Icon x, y, Width, Height
    $Badge->opacity = 0.7; //transparency (0 - 1)

    array(
     array({MESSAGE},{COLOR})
    );
```

---

### Label Example

[](#label-example)

[![tag](https://camo.githubusercontent.com/832c490e1fb7cea6860e42152772714e03d873ce1ca6f56d2c88a95e9254e9ef/68747470733a2f2f342e76657263656c2e6170702f7374617469632f7461672f3535352f56342e312e302f3834626639363f69636f6e3d746167)](../../releases)[![license](https://camo.githubusercontent.com/a181ab98fb57fa12b3ec57ef25a39dde5be7e8eedc09bb74585082e37ef5dd40/68747470733a2f2f342e76657263656c2e6170702f7374617469632f6c6963656e73652f3535352f4d504c2d322e302f4645374433373f69636f6e3d6c6963656e7365)](LICENSE)[![size](https://camo.githubusercontent.com/a6391bc1d176220b3465ec41e2e3d0c05b311a66838af3e96c1787edf3b6a230/68747470733a2f2f342e76657263656c2e6170702f7374617469632f73697a652f3535352f3939394b422f6233366434313f69636f6e3d73697a65)](src/Badge.php/)[![download](https://camo.githubusercontent.com/8c9f3bb7bb193456e8b591b1078a8e2b34b70b4c97164657a8570fa9d9896beb/68747470733a2f2f342e76657263656c2e6170702f7374617469632f646f776e6c6f61642f3535352f3939394d2f6134613631643f69636f6e3d646f776e6c6f6164)](../../)

[![languages](https://camo.githubusercontent.com/6aa75fd7dce26e7f93e9c6030bb85fd31aa3c3a93c597f3814fee84ffb2cee09/68747470733a2f2f342e76657263656c2e6170702f7374617469632f6c616e67756167652f3535352f7068702f3030374543363f69636f6e3d6c616e6775616765)](../../search?l=php)[![watch](https://camo.githubusercontent.com/7af353299706be0b17731017c18804c7237bcd8cc3fcab87e6fbaf6054c2a04b/68747470733a2f2f342e76657263656c2e6170702f7374617469632f77617463682f3535352f3939394d2f3238613734353f69636f6e3d7761746368)](../../watchers)[![star](https://camo.githubusercontent.com/435789d86745058c6c221875443636301b3a3a055e0768c866daafbdb50776c8/68747470733a2f2f342e76657263656c2e6170702f7374617469632f737461722f3535352f3939394d2f6164386233643f69636f6e3d73746172)](../../stargazers)[![fork](https://camo.githubusercontent.com/b086d1e6907fa872daa8741013d6b11542a91139a8cfc8222c2f82f41886ab44/68747470733a2f2f342e76657263656c2e6170702f7374617469632f666f726b2f3535352f3939394d2f3962393563393f69636f6e3d666f726b)](../../network/members)

```
    //https://example.com/Label/{LABEL}/{MESSAGE}/{COLOR}.svg

    $Badge->Icon = file_get_contents({LOGO}); //
    array(
     array({LABEL},'555555'),
     array({MESSAGE},{COLOR})
    );
```

---

### Travis CI badge

[](#travis-ci-badge)

[![Travis-ci](https://camo.githubusercontent.com/5cfa611484cdd8749058ebbc2869aaa8f27dd7892f519793721035af4dcc31fe/68747470733a2f2f6170692e7472617669732d63692e636f6d2f79616b65696e672f7068705f62616467652e7376673f6272616e63683d6d61696e)](https://travis-ci.com/yakeing/php_badge)

### codecov badge

[](#codecov-badge)

[![codecov](https://camo.githubusercontent.com/9ba129bc76b3b9530d400c65009569388499af320e38836d38dc6214623b6644/68747470733a2f2f636f6465636f762e696f2f67682f79616b65696e672f7068705f62616467652f6272616e63682f6d61696e2f67726170682f62616467652e737667)](https://codecov.io/gh/yakeing/php_badge)

### Packagist badge

[](#packagist-badge)

[![Version](https://camo.githubusercontent.com/dfa3b1207a30304f8c033efe7e23776a89e572e40124c1787dbb2b7fb3d8e457/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f79616b65696e672f7068705f62616467652e737667)](../../releases)[![Downloads](https://camo.githubusercontent.com/233dcf22496474b076826086b7ed22815a120d7c03a4a61a89b22790d87dab5d/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f79616b65696e672f7068705f62616467652e737667)](https://packagist.org/packages/yakeing/php_badge/stats)

### Github badge

[](#github-badge)

[![Downloads](https://camo.githubusercontent.com/79a798dd7910f70e147c282e0e95c5dc8fcf2a9b94b9a4f359fde97ffc20fc33/68747470733a2f2f342e76657263656c2e6170702f6769746875622f646f776e6c6f6164732f79616b65696e672f7068705f62616467653f69636f6e3d676974687562)](../../)[![Size](https://camo.githubusercontent.com/b3f8aadabb2e8cbe320f96b42282a7191428c8561e2dab1f621672a979d34b8d/68747470733a2f2f342e76657263656c2e6170702f6769746875622f73697a652f79616b65696e672f7068705f62616467653f69636f6e3d676974687562)](src)

### Installation

[](#installation)

Use [Composer](https://getcomposer.org) to install the library. Of course, You can go to [Packagist](https://packagist.org/packages/yakeing/php_badge) to view.

```
    $ composer require yakeing/php_badge
```

### Initialization parameter

[](#initialization-parameter)

- Sample：

```
    $arr = array(
        array('build', '555'), //#555555
        array('passing', '4c1'), //#44CC11
        ..........
    );

    $Badge = new Badge();
    $Badge->svg($arr);
```

[Sponsor](https://github.com/yakeing/Documentation/blob/master/Sponsor/README.md)
---------------------------------------------------------------------------------

[](#sponsor)

If you've got value from any of the content which I have created, then I would very much appreciate your support by payment donate.

[![Sponsor](https://camo.githubusercontent.com/8bf9004e5f53d2223ce47ceeed603c32154d9e6afa76039dd117bf91c5c1a685/68747470733a2f2f342e76657263656c2e6170702f7374617469632f53706f6e736f722f4541344141413f69636f6e3d6865617274)](https://github.com/yakeing/Documentation/blob/master/Sponsor/README.md)

Author
------

[](#author)

weibo: [yakeing](https://weibo.com/yakeing)

twitter: [yakeing](https://twitter.com/yakeing)

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~37 days

Total

5

Last Release

2326d ago

Major Versions

v3.6.0 → v4.0.02019-09-01

v4.2.0 → v5.02020-01-01

### Community

Maintainers

![](https://www.gravatar.com/avatar/95aaf19e492f95c5180360b25e7197ff554625372973f3555b9792a07d5cb9f2?d=identicon)[yakeing](/maintainers/yakeing)

---

Top Contributors

[![yakeing](https://avatars.githubusercontent.com/u/6356091?v=4)](https://github.com/yakeing "yakeing (12 commits)")

---

Tags

badgeiconsphpsvgsvgbadge

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/yakeing-php-badge/health.svg)

```
[![Health](https://phpackages.com/badges/yakeing-php-badge/health.svg)](https://phpackages.com/packages/yakeing-php-badge)
```

###  Alternatives

[components/flag-icon-css

A curated collection of all country flags in SVG — plus the CSS for easier integration.

12.0k1.6M23](/packages/components-flag-icon-css)[twbs/bootstrap-icons

Official open source SVG icon library for Bootstrap

7.9k2.0M56](/packages/twbs-bootstrap-icons)[simple-icons/simple-icons

SVG icons for popular brands

24.8k194.2k4](/packages/simple-icons-simple-icons)[rinvex/countries

Rinvex Countries is a simple and lightweight package for retrieving country details with flexibility. A whole bunch of data including name, demonym, capital, iso codes, dialling codes, geo data, currencies, flags, emoji, and other attributes for all 250 countries worldwide at your fingertips.

1.7k7.4M48](/packages/rinvex-countries)[kartik-v/bootstrap-star-rating

A simple yet powerful JQuery star rating plugin for Bootstrap.

1.1k4.5M5](/packages/kartik-v-bootstrap-star-rating)[lipis/flag-icons

A curated collection of all country flags in SVG — plus the CSS for easier integration.

12.0k27.5k4](/packages/lipis-flag-icons)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
