swow/php-stub-generator

PHP extension stub generator

Maintainers

👁 twosee

Package info

github.com/swow/php-stub-generator

pkg:composer/swow/php-stub-generator

Statistics

Installs: 1

Dependents: 0

Suggesters: 0

Stars: 4

Open Issues: 0

dev-develop 2022-01-18 17:02 UTC

Requires

  • php: >=8.0
  • swow/util: *

Requires (Dev)

None

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT 27f0cdb4969a211a26f42665fcc27156ac87c44b

  • twose <twosee.woop@php.net>

extensionswow

This package is auto-updated.

Last update: 2022-04-18 17:27:34 UTC


README

Generate a single PHP source file from the extension's arginfo.

It can work with php-src's gen_stub.php to update arginfo of extension C source file automatically.

Usage

gen-stub.php

Usage: php gen-stub.php \
 [-h|--help] [--noinspection] [--stub-file=/path/to/ext.stub.php] [--gen-arginfo-mode] \
 [--function-filter=functionA|functionB] [--class-filter=classA|classB] \
 <extension-name> [output-target]

update-arginfo.php

Usage: php update-arginfo.php \
 [--clear-cache] [--cache-path=/path/to/cache] [--stub-file=/path/to/ext.stub.php] \
 <extension-name> <extension-source-path> <extension-build-dir>

Results show

License

This package is licensed using the MIT License.