Skip to content

PHP 8 compatibility #40

@swen100

Description

@swen100

Hello everybody. Since PHP 8 was released last year, maybe some are looking for a port of the cairo-extension for PHP.
Here it is! It took quite a bit of work, but now it's finished after all.

I've created a fork and a new branch. The code can be found here:
https://github.com/swen100/cairo

What have I done:

  • Ported to PHP8
  • full rewrite of all tests and added tests for new methods
  • added support for direct raster-output in format JPEG
  • added 17 methods and class-constants to Cairo\Region (cairo 1.10)
  • added 7 methods and class-constants to Cairo\Surface\Pdf (cairo 1.12, 1.16)
  • added 2 methods and class-constants to Cairo\Surface\Svg (cairo 1.16)
  • added 1 method to Cairo\Surface\Recording (cairo 1.12)
  • added 5 methods to Cairo\Surface (cairo 1.12 and 1.14)

I would be happy if someone in charge and with access to the project could make a php8-branch in the original project to be able to take over the code from my branch.

Btw, the extension needed for cairo (datastructures) was also adapted to work with PHP 8 and can be found here:
https://github.com/swen100/structures

Many greetings, Swen

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions