PHPackages                             swow/php-stub-generator - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. swow/php-stub-generator

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

swow/php-stub-generator
=======================

PHP extension stub generator

511[3 issues](https://github.com/swow/php-stub-generator/issues)PHP

Since Jan 18Pushed 9mo ago3 watchersCompare

[ Source](https://github.com/swow/php-stub-generator)[ Packagist](https://packagist.org/packages/swow/php-stub-generator)[ RSS](/packages/swow-php-stub-generator/feed)WikiDiscussions develop Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

PHP extension stub generator
============================

[](#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
-----

[](#usage)

### gen-stub.php

[](#gen-stubphp)

```
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] \
          [output-target]

```

### update-arginfo.php

[](#update-arginfophp)

```
Usage: php update-arginfo.php \
         [--clear-cache] [--cache-path=/path/to/cache] [--stub-file=/path/to/ext.stub.php] \

```

Results show
------------

[](#results-show)

- [Swow](https://github.com/swow/swow/blob/develop/lib/swow-stub/src/Swow.php)

License
-------

[](#license)

This package is licensed using the MIT License.

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance29

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity27

Early-stage or recently created project

 Bus Factor1

Top contributor holds 77.3% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/1bdf9390d85a45dad64fe58584f55824c12a134a04e338d6259845683d9db137?d=identicon)[twosee](/maintainers/twosee)

---

Top Contributors

[![twose](https://avatars.githubusercontent.com/u/25978241?v=4)](https://github.com/twose "twose (51 commits)")[![dixyes](https://avatars.githubusercontent.com/u/11804369?v=4)](https://github.com/dixyes "dixyes (14 commits)")[![AuroraYolo](https://avatars.githubusercontent.com/u/20986749?v=4)](https://github.com/AuroraYolo "AuroraYolo (1 commits)")

### Embed Badge

![Health badge](/badges/swow-php-stub-generator/health.svg)

```
[![Health](https://phpackages.com/badges/swow-php-stub-generator/health.svg)](https://phpackages.com/packages/swow-php-stub-generator)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
