yakeing / Php_badge
Licence: mpl-2.0
This is an identification tag based on SVG, It can quickly generate various labels and status identifiers
Stars: ✭ 101
Projects that are alternatives of or similar to Php badge
Flagpack Core
Flagpack contains 260+ easily implementable flag icons to use in your design or code project.
Stars: ✭ 127 (+25.74%)
Mutual labels: svg, icons
Materialdesign
✒6200+ Material Design Icons from the Community
Stars: ✭ 9,669 (+9473.27%)
Mutual labels: svg, icons
Tabler Icons
A set of over 1400 free MIT-licensed high-quality SVG icons for you to use in your web projects.
Stars: ✭ 10,858 (+10650.5%)
Mutual labels: svg, icons
React Bootstrap Icons
React component for Bootstrap Icons
Stars: ✭ 71 (-29.7%)
Mutual labels: svg, icons
Svg Icon
👻 A lightweight library that makes it easier to use SVG icons in your Angular Application
Stars: ✭ 112 (+10.89%)
Mutual labels: svg, icons
Iconify Sketch
Sketch plug-in for importing over 70,000 icons from 80+ icon sets, including Material Design Icons, FontAwesome, Jam Icons, Open Emoji and many others.
Stars: ✭ 76 (-24.75%)
Mutual labels: svg, icons
Blade Icons
A package to easily make use of SVG icons in your Laravel Blade views.
Stars: ✭ 1,181 (+1069.31%)
Mutual labels: svg, icons
Icons
The premium icon font for @uiwjs Component Library. https://uiwjs.github.io/icons
Stars: ✭ 99 (-1.98%)
Mutual labels: svg, icons
Linearicons
Linearicons is the highest quality set of line icons, matching with minimalist UI designs in iOS.
Stars: ✭ 64 (-36.63%)
Mutual labels: svg, icons
H2d2 Shopicons
Essentials E-Commerce icon pack for free.
Stars: ✭ 67 (-33.66%)
Mutual labels: svg, icons
Teenyicons
Tiny minimal 1px icons designed to fit in the smallest places.
Stars: ✭ 1,631 (+1514.85%)
Mutual labels: svg, icons
Badge
This is an identification tag based on SVG, It can quickly generate various labels and status identifiers.
v5.0.0 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.
test example:
https://badging.now.sh
Sponsors Example
$Badge->Icon = file_get_contents({LOGO}); //<path d="M23....." fill="#FFF"></path>
array(
array({MESSAGE},{COLOR})
);
Hits Example
//https://example.com/Hits/{USERNAME}/{PROJECT}/image.svg
++$count;
array(
array('hits','555555'),
array($count,'4C1')
);
Server Example
//https://example.com/Server/{USERNAME}/{PROJECT}/image.svg
array(
array('{OS}','555555'),
array('CPU: {CPU}','A0ABFC'),
array('RAM: {RAM}','F0A010')
);
State Example
//https://example.com/Label/{LOGO}/{MESSAGE}/{COLOR}.svg
//get logo file
$Badge->Icon = file_get_contents({LOGO}); //<path d="M23....." fill="#FFF"></path>
$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
//https://example.com/Label/{LABEL}/{MESSAGE}/{COLOR}.svg
$Badge->Icon = file_get_contents({LOGO}); //<path d="M23....." fill="#FFF"></path>
array(
array({LABEL},'555555'),
array({MESSAGE},{COLOR})
);
Travis CI badge
codecov badge
Packagist badge
Github badge
Installation
Use Composer to install the library. Of course, You can go to Packagist to view.
$ composer require yakeing/php_badge
Initialization parameter
- [x] Sample:
$arr = array(
array('build', '555'), //#555555
array('passing', '4c1'), //#44CC11
..........
);
$Badge = new Badge();
$Badge->svg($arr);
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.
Author
weibo: yakeing
twitter: yakeing
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].