Search by

cairophp / stubs

samirzz

Cairo's PHP API as stubs, for IDEs and static analysers. Cairo itself is the cairo binary, which has the real classes built in.

Package info

github.com/cairophp/stubs

pkg:composer/cairophp/stubs

Statistics

Installs: 6

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v0.8.0 2026-11-28 00:59 UTC

This package is auto-updated.

Last update: 2026-11-28 01:00:52 UTC


README

Cairo's PHP API as stubs, for IDEs and static analysers: signatures and docblocks of every Cairo\ class and function, no bodies. Cairo itself is the cairo binary, which has the real classes built in.

composer require --dev cairophp/stubs

PhpStorm and Intelephense index cairo.php from vendor/. For PHPStan, include vendor/cairophp/stubs/phpstan.neon (phpstan/extension-installer does that for you). For Psalm, list vendor/cairophp/stubs/cairo.php under <stubs>. The package has no autoload entry on purpose: never require the stubs, since Cairo already declares these classes.

This repository is a read-only mirror. It is generated from stubs/ in cairophp/cairo with every release and carries the same tags; open issues and pull requests there.