一个非常简单的 Shields badge 服务

SimpleShields是一款轻量级的状态图标服务,仅由一个PHP文件组成,包含60行代码。该服务受到ShieldsIO的启发,支持自定义主题文字和颜色,部署简易且稳定,可在Apache或nginx上运行。

Simple Shields

A very simple Shields Service with PHP. Inspired by Shields IO.

http://shields.hust.cc/
http://shields.hust.cc/
http://shields.hust.cc/
http://shields.hust.cc/

  • Pixel-perfect, Retina-ready, Fast, Consistent, Hackable, No tracking.

  • Really Simple, only one PHP file with 60 rows.

  • Easy deploy and Stable, Apache or nginx.

部署效果网址:http://shields.hust.cc/

github代码地址:https://github.com/hustcc/sim...

1. How to Use ?

http://shields.hust.cc/<SUBJECT>-<STATUS>-<COLOR>.svg

  • subject: the left part TEXT of shields.

  • status: the right part TEXT of shields.

  • color: the left part COLOR of shields. red, orande, yellow, brightgreen, green, yellowgreen, blue, grey, lightgrey are Optional color name, or use RGB. e.g. ff69b4.

2. Deploy you service

  1. Download the code, put it into the apache or nginx website dir.

  2. Add vhost of apache or nginx.

  3. Config the url rewrite. use .htaccess on apache, use location config on nginx.

  4. Binding you domain.

3. Contribution

  • fork the repo.

  • add your code, and pull a request.

  • or add a issue.

Thanks for Shields IO, inspired by it.

LICENSE

MIT

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值