PHP-Eye

About this page

This page once started from the idea of using the configuration of continuous integration systems like Travis to see, if a software will work with a given version of a runtime.

The first version of this site was running at hhvm.h4cc.de and only collecting the HHVM runtime support. PHP-Eye is now collecting the runtime support infos for all PHP and HHVM versions supported by Travis-Ci.

To achieve this, constant crawling of all packages for new version from packagist.org and Travis-configurations from github.com is needed.

If you like this page, be me a beer or such and let us have a good time :)

Badges

Badges are small images showing the status of something. Thanks to shields.io for providing such a usefull service and badge-generator.

There are multiple kind of badges you can select from, but all have the same common parameters: Style and Image-Format

Image-Format

Two image formats can be selected from.

Format Description
PNG Format using pixels, not looking very smooth but will work always.
SVG Vector based format with smooth gradients and edges. Retina-ready ;)

Style

Three badge styles are available.

Style Example Description
plastic Old style, was default on hhvm.h4cc.de.
flat Default style at PHP-Eye.
flat-square A squared version of the flat style.

By Runtime

A badge for each runtime can be accessed using the following table. Because of the granularity of Travis, no patch version increments can be selected, only major-minor.

Runtime Badge Link
HHVM
http://php-eye.com/badge/symfony/symfony/hhvm.svg
PHP 7.1
http://php-eye.com/badge/symfony/symfony/php71.svg
PHP 7.0
http://php-eye.com/badge/symfony/symfony/php70.svg
PHP 5.6
http://php-eye.com/badge/symfony/symfony/php56.svg
PHP 5.5
http://php-eye.com/badge/symfony/symfony/php55.svg
PHP 5.4
http://php-eye.com/badge/symfony/symfony/php54.svg
PHP 5.3
http://php-eye.com/badge/symfony/symfony/php53.svg
PHP 5.2
http://php-eye.com/badge/symfony/symfony/php52.svg

By Status

Some special badges are available, where multiple runtimes will be collected by their status. If no runtime matches a status, a 1x1px transparent GIF will be returned to avoid breaking site layouts.

Badge Link
http://php-eye.com/badge/h4cc/phpqatools/tested.svg
http://php-eye.com/badge/h4cc/phpqatools/partial.svg
http://php-eye.com/badge/h4cc/phpqatools/not-tested.svg

Version or Branch

By default, the dev-master Branch will be used for the badge. To use different branch or version use the branch queryparameter.

Branch Badge Link
master
http://php-eye.com/badge/symfony/symfony/php56.svg?branch=master
v2.6.0
http://php-eye.com/badge/symfony/symfony/php56.svg?branch=v2.6.0
v2.5.0
http://php-eye.com/badge/symfony/symfony/php56.svg?branch=v2.5.0
v2.3.0
http://php-eye.com/badge/symfony/symfony/php56.svg?branch=v2.3.0

API for PHP Eye

This service was possible because of others offering their APIs. So PHP-Eye will try to do the same.

The main API is documented via Nelmio/ApiDoc here and can be found here /api/doc. This API will return nearly all data we have stored about a package.

Another API call is technically another format of a badge request. When requesting a badge for JSON like this: /badge/symfony/symfony.json, all runtime support information for that branch/version is returned.