Skip to content
This repository has been archived by the owner on May 14, 2023. It is now read-only.

Generate stubs for any PHP extension.

License

Notifications You must be signed in to change notification settings

Lctrs/php-ext-stubs-generator

Repository files navigation

php-ext-stubs-generator

Integrate Release Renew

Mutation Score Code Coverage Type Coverage

Latest Stable Version Total Downloads

Installation

Run

composer require --dev lctrs/php-ext-stubs-generator

Usage

php vendor/bin/generate-stubs-for-ext extension_name

By default, the command will places the generated stubs in a directory named stubs/ at the root of the project. You can change the name of this directory by passing a --target option to the command as below (nested directories are supported) :

php vendor/bin/generate-stubs-for-ext extension_name --target src/stubs/

Changelog

Please have a look at CHANGELOG.md.

Contributing

Please have a look at CONTRIBUTING.md.

License

This package is licensed using the MIT License.

Please have a look at LICENSE.md.