souplette/chicot

Generates IDE stubs for extensions from PHP Reflection API

0.2.0 2024-01-15 15:01 UTC

This package is auto-updated.

Last update: 2024-11-15 16:44:51 UTC


README

codecov

Generates IDE stubs for extension modules using PHP's Reflection API.

Installation

As a Phar archive

Use phive (recommended):

phive install souplette-php/chicot

Alternatively, grab the phar archive from the latest release.

As a composer package

composer require souplette/chicot

Usage

List installed extension modules:

chicot modules

Generate stubs for the core module and writes them to a file named core.stub.php:

chicot stub 'core' 'core.stub.php'