badges/poser là dự án phía máy chủ trên GitHub với 147 sao, viết chủ yếu bằng PHP. PHP badges library
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
The available styles are plastic, flat, flat-square, for-the-badge, and social.
You can also use the provided Docker Compose services:
docker compose run --rm php82 bin/poser license MIT blue
docker compose run --rm php83 bin/poser license MIT blue -p "license.svg"
docker compose run --rm php83 bin/poser license MIT blue -s "plastic" -p "license-plastic.svg"
Usage as library
1. Add to composer dependencies
composer require badges/poser
2. Use in your project as a lib
use PUGX\Poser\Render\SvgPlasticRender;
use PUGX\Poser\Poser;
$render = new SvgPlasticRender();
$poser = new Poser([$render]);
echo $poser->generate('license', 'MIT', '428F7E', 'plastic');
// or
echo $poser->generateFromURI('license-MIT-428F7E.svg?style=plastic');
// or
echo $poser->generateFromURI('license-MIT-428F7E?style=plastic');
// or
$image = $poser->generate('license', 'MIT', '428F7E', 'plastic');
echo $image->getStyle();
The allowed styles are: plastic, flat, flat-square, for-the-badge, and social.
Badge customization
Badges generated from a URI support these query string options:
Option
Description
style
Badge style: plastic, flat, flat-square, for-the-badge, or social.
labelColor
Color for the left side of the badge. Accepts named colors, 6-digit hex, or 3-digit hex.
logo
Optional logo as an image URL, data:image/... URI, or SVG path data.
logoColor
Color used when logo is SVG path data. Defaults to white. Accepts named colors, 6-digit hex, or 3-digit hex.
When these options are used in a URL, encode reserved characters. In particular, encode # as %23, and encode full image/data URLs passed as logo.
The CLI currently exposes style selection with --style; labelColor, logo, and logoColor are available through URI-based generation.
Custom SVG templates
Since v3.4.0, SVG templates use vendorStartX and valueStartX instead of the old vendorStartPosition and valueStartPosition placeholders. If you maintain custom templates, update them before upgrading:
These values are the text center positions multiplied by 10 and are intended to be used with transform="scale(.1)", as the bundled templates do.
The renderer also provides these optional template placeholders: vendorUpper, valueUpper, vendorTextLength, valueTextLength, vendorWidthMinus1, valueWidthMinus1, valueRectX, separatorX, and logoElement.
Examples (generated with make doc-images)
Encoding
Dashes -- → - Dash
Underscores __ → _ Underscore
_ or Space → Space
More
For more info please see the behat features
Why a composer badge?
Not only because all the other languages already have it, but having the latest stable release in the readme could save time.
Contributing
Active contribution and patches are very welcome.
Please refer to CONTRIBUTING
Docker development
You can use the env var CONTAINER to run the tests in a specific PHP version.
The default version if CONTAINER is omitted is php85.
badges/poser có 147 sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/badges/poser. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
badges/poser có những chủ đề gì?
GitHub topics của badges/poser: "badge-poser", "hacktoberfest", "php", "php-library", "poser". TopGit xếp repo vào nhóm Backend.
badges/poser còn đang phát triển không?
Commit gần nhất trên badges/poser là 3 tháng trước (theo timestamp GitHub). Repo có 44 fork — một chỉ báo về mức độ quan tâm của cộng đồng.
badges/poser là gì?
badges/poser (badges/poser) là dự án PHP trên GitHub. Theo mô tả gốc: PHP badges library
badges/poser so với các dự án Backend khác thế nào?
badges/poser được TopGit xếp vào nhóm Backend, với 147 sao GitHub và viết bằng PHP. Xem trang chủ đề Backend trên TopGit để so sánh với các dự án tương tự theo số sao và mức độ hoạt động.
badges/poser viết bằng ngôn ngữ gì?
badges/poser chủ yếu viết bằng PHP. Trường "language" của GitHub dựa trên phần lớn byte ở nhánh mặc định.
Vì sao badges/poser được xếp vào nhóm Backend?
TopGit xếp badges/poser vào nhóm Backend dựa trên GitHub topics và mô tả của repo (gắn thẻ: "badge-poser", "hacktoberfest", "php"). Việc phân loại dựa trên metadata thật của repo, không phải đoán theo cảm tính biên tập.
Đọc đầy đủ README ở tab phía trên.
Muốn nghe thêm một ý kiến về poser?
Hỏi một AI đọc được trang này — một cú bấm là có ngay nhận định về poser.