Skip to content

swow/php-stub-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP extension stub generator

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] \
         [--filter-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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages