This is an identification tag based on SVG, It can quickly generate various labels and status identifiers
This is an identification tag based on SVG, It can quickly generate various labels and status identifiers
This is an identification tag based on SVG, It can quickly generate various labels and status identifiers.
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://org.vercel.app $Badge->Icon = file_get_contents({LOGO}); //
array(
array({MESSAGE},{COLOR})
); //https://example.com/Hits/{USERNAME}/{PROJECT}/image.svg
++$count;
array(
array('hits','555555'),
array($count,'4C1')
); //https://example.com/Server/{USERNAME}/{PROJECT}/image.svg
array(
array('{OS}','555555'),
array('CPU: {CPU}','A0ABFC'),
array('RAM: {RAM}','F0A010')
); //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})
); //https://example.com/Label/{LABEL}/{MESSAGE}/{COLOR}.svg
$Badge->Icon = file_get_contents({LOGO}); //
array(
array({LABEL},'555555'),
array({MESSAGE},{COLOR})
);Use Composer to install the library. Of course, You can go to Packagist to view.
$ composer require yakeing/php_badge
$arr = array(
array('build', '555'), //#555555
array('passing', '4c1'), //#44CC11
..........
);
$Badge = new Badge();
$Badge->svg($arr);
weibo: yakeing
twitter: yakeing
No open issues yet, or sync has not completed.