Florian Breit — CfP Samples

CairoForPHP Samples

CfP Samples logo

CairoForPHP Samples is an application that demonstrates several functions of the Cairo implementation for PHP. It uses a technique with which, from the same source, it can run both as a desktop application with PHP-GTK and as a web application in a webserver. It is compilable to a single Phar and offers both live rendering of the Cairo examples and a previously rendered demo image, with which it can be used to test the Cairo Graphics Library Extension for PHP. It is multilingual, using the locale to determine languages and currently translated into 6 languages. The examples used are modular and easily extendable by drop-in and editation of an XML-file - all data dependencies are based on XML.



Live Demo

Click here to see a live demo running the Phar. Note especially how the examples with text in them produce unexpected output because the standard font is not installed on the server.