https://github.com/hustcc/simple-shields
:beginner: a simple Shields Badge service with PHP & SVG, Simple, Fast, Stable and Easy Deploy.
https://github.com/hustcc/simple-shields
badge shield shieldsio svg
Last synced: 9 months ago
JSON representation
:beginner: a simple Shields Badge service with PHP & SVG, Simple, Fast, Stable and Easy Deploy.
- Host: GitHub
- URL: https://github.com/hustcc/simple-shields
- Owner: hustcc
- Created: 2016-08-31T04:21:22.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-10-26T05:35:56.000Z (about 9 years ago)
- Last Synced: 2025-02-14T04:27:49.225Z (10 months ago)
- Topics: badge, shield, shieldsio, svg
- Language: HTML
- Homepage: http://shields.hust.cc/
- Size: 124 KB
- Stars: 50
- Watchers: 6
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Simple Shields
> A very simple, stable, easy deploy `Shields badge service` with PHP & SVG. Inspired by Shields IO.






♥-ff69b4.svg)
- **Shields.IO style**. Pixel-perfect, Retina-ready, Fast, Consistent, Hackable, No tracking.
- Really **Simple**, only one PHP file with 60 rows, no dependence.
- **Easy deploy** and **Stable**, Apache or nginx.
## 1. How to Use ?
> The url format: **http://shields.hust.cc/SUBJECT-STATUS-COLOR.svg**
- **subject**: the left part TEXT of shields.
- **status**: the right part TEXT of shields.
- **color**: the right part COLOR of shields. `red`, `orange`, `yellow`, `brightgreen`, `green`, `yellowgreen`, `blue`, `grey`, `lightgrey` are optional color name, or you can use `RGB` color, e.g. ff69b4.
## 2. Deploy your Own service
1. Download the code, put it into the `apache` or `nginx` website dir.
2. Add vhost on apache or nginx.
3. **optional step**: Config the url rewrite. use `.htaccess` on apache([here is the file](.htaccess)), use `location config` on nginx([here is the file](nginx-shields.conf)).
4. Binding you domain.
**MEMO**: if you don't rewrite url, you can use **http://you-domain/api.php?subject=SUBJECT&status=STATUS&color=COLOR**
## 3. Contribution
- Fork the repo.
- Add your code, and pull a request.
- Or add a issue.
Thanks for Shields IO, inspired by it. The 404 page from internet.
## LICENSE
MIT@hustcc