Download the PHP package marcelbolten/php-cairo without Composer

On this page you can find all versions of the php package marcelbolten/php-cairo. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package php-cairo

Cairo for PHP 8.1+

Cairo is a 2D graphics library with support for multiple output devices. Output targets include the X Window System (via both Xlib and XCB), Quartz, Win32, image buffers, PostScript, PDF, and SVG files.

This extension provides access to Cairo functionality in PHP 8.1+ in the Cairo namespace.

Build and Test

Requirements

Additional features are supported up to Cairo version 1.18.4.

Features are enabled at compile time based on the library version they are compiled against.

Documentation and information about the underlying library can be found at cairographics.org.

Installation

There are plans to make this available via PIE (PHP Installer for Extensions)

Until then, please compile and install the cairo extensions and enable it in your php.ini file.

Compile

This extension can be compiled and tested using phpize.

The cairo extension also requires cairo development files. You can build the package manually or use your system's package manager. For example on ubuntu use:

Then you can use phpize to install the extension against your current PHP install:

If you want to use a non-standard location for your PHP use:

make install copies cairo.so to the right location, but you still need to enable the module in your php.ini file.

Codec overage reports

A coverage report is uploaded to gh-pages during every Build and Test workflow.

Requirements: lcov, gzip.

To obtain a code coverage report the extension must be compiled with additional flags:

This will run all tests and create an html report.

Examples

The examples directory holds samples of all currently working utilities for the extension.

Community

You can send comments, patches, questions here on github

Authors

Elizabeth M Smith | Swen Zanon | Marcel Bolten | Bernhard R. Fischer (JPEG-integration)

License

PHP extension binding code released under the MIT license See LICENSE

The Cairo Graphics library is released under the LGPL

Documentation

What little documentation we currently have is in code comments and the docs directory.

We'd like to use some kind of markdown or rst format for docs, a decision isn't final yet.


All versions of php-cairo with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package marcelbolten/php-cairo contains the following files

Loading the files please wait ...