Code Monkey home page Code Monkey logo

simple-shields's Introduction

Simple Shields

A very simple, stable, easy deploy Shields badge service with PHP & SVG. Inspired by Shields IO.

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

http://shields.hust.cc/ ![http://shields.hust.cc/](http://shields.hust.cc/Hustcc-( ˘ ³˘)♥-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), use location config on nginx(here is the file).
  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

simple-shields's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

simple-shields's Issues

Debian 8下无显示

环境:Debian 8 + Apache 2.4.23 + PHP 5.6.26。mod_rewrite已开启

用git将源码clone下来后放在/var/www/html/static/tag

HTTP响应200但是什么也没显示

是需要再给Apache或PHP安装什么模块吗?

504 gateway timeout

环境:windows10 x64 WNMP 集成包,3.1.0.0,nginx

问题:没开 URL 重写,将php项目文件复制进 webroot 之后,打开如下地址

http://localhost/api.php?subject=s&status=s&color=brightgreen

然后浏览器一直转圈,最后报了个 504 timeout。

wnmp 里提供了一个 php_gd2.dll,也按要求打开了

字体文件也在 webroot 里,并没有丢

发生了什么

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.