php-stubs/generator
Generate PHP stub files from your codebase for better IDE autocomplete, static analysis, and documentation. php-stubs/generator scans sources and produces lightweight stubs suitable for packages and frameworks, helping consumers get accurate type hints without shipping full sources.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| barryvdh/laravel-ide-helper | 0.87 | Generates accurate PHPDoc helper files for Laravel to improve IDE autocompletion and type hints. Create _ide_helper.php for facades, add or export model PHPDocs, fluent methods, factory builders, and PhpStorm container metadata—kept in sync with your project. | 14,951 | 15,205 | 1,191 | 3M | 160 | 81.6 | 61.5 | MIT | 4 months ago | |
| openswoole/ide-helper | 0.86 | Generates IDE helper stubs for OpenSwoole, improving autocompletion, type hints, and static analysis in PhpStorm and other editors. Useful for Swoole-style async/server apps to navigate APIs faster and reduce guesswork. | 58 | 60 | 7 | 26K | 0 | 0.5 | 36.4 | — | — | |
| mark-gerarts/phpstan-automapper-plus | 0.85 | PHPStan extension for AutoMapper+ that suppresses false “map() invoked with 3 parameters” errors while MapperInterface lacks the optional $context parameter (added post-1.0, formal in 2.0). Install via extension-installer or include phpstan.neon. | 0 | 0 | 1 | 7K | 1 | 0.5 | 52.8 | — | 6 years ago | |
| theseer/phpdox | 0.84 | phpDox is a PHP documentation generator that builds API docs from your source code using reflection, tokens, and optional PHPDoc. It produces structured HTML output and integrates with PHPUnit coverage, offering configurable builds for libraries and apps. | 601 | 606 | 120 | 8K | 47 | 24.1 | 32.5 | NOASSERTION | 7 years ago | |
| soyuka/stubs-mongodb | 0.84 | Laravel stub overrides to generate models/migrations geared for MongoDB usage. Adds MongoDB-friendly boilerplate when running artisan make commands so new classes start with the right base classes, traits, and conventions for jenssegers/mongodb-style projects. | 3 | 4 | 1 | 36K | 0 | 0.0 | 54.7 | Apache-2.0 | — | |
| evert/phpdoc-md | 0.84 | Generates Markdown documentation from PHP source using phpDocumentor-style docblocks. Turn packages and libraries into clean README/API docs with configurable templates and output paths—handy for publishing reference docs to GitHub, wikis, or static sites. | 169 | 171 | 44 | 816 | 5 | 3.8 | 12.8 | MIT | — | |
| binafy/laravel-stub | 0.84 | — | 98 | 100 | 8 | 5K | 0 | 18.5 | 27.0 | MIT | 3 months ago | |
| phpstan/php-8-stubs | 0.84 | Stub files for PHP 8 built-in functions, classes, and extensions, maintained for PHPStan. Improves static analysis and type inference by providing accurate signatures and phpDoc where native reflection is incomplete or inconsistent. | 31 | 31 | 11 | 333K | 4 | 28.3 | 66.1 | MIT | 1 month ago | |
| kwn/php-rdkafka-stubs | 0.84 | IDE helper stubs for php-rdkafka (librdkafka) extension. Adds classes, methods and constants for Kafka producers/consumers to improve autocompletion and static analysis in PHP projects without requiring the extension at dev time. | 152 | 154 | 35 | 74K | 3 | 17.3 | 42.3 | MIT | 4 months ago | |
| jetbrains/phpstorm-stubs | 0.83 | Syntactically correct PHP stub files for core and common extensions, providing function/class signatures, constants, and comprehensive PHPDoc for accurate IDE completion, inspections, type inference, and documentation in PhpStorm and other tools. | 1,390 | 1,373 | 825 | 2M | 0 | 48.4 | 51.7 | Apache-2.0 | 2 weeks ago | |
| atoum/stubs | 0.83 | IDE stubs for atoum providing PHPDoc annotations and full code completion without cluttering atoum’s core source. Install via Composer, use the atoum/mageekguy\atoum aliases in tests, and get richer autocompletion for the userland API. | 16 | 17 | 5 | 7K | 4 | 3.4 | 27.0 | NOASSERTION | 9 months ago | |
| carlescliment/chained-stubs-bundle | 0.83 | — | 0 | 0 | 1 | 0 | 0 | 0.0 | — | — | — | |
| purwantoid/package-generator | 0.83 | — | 0 | 0 | 0 | 0 | 0 | 8.1 | — | — | 7 months ago | |
| berry/extension-method-stub-generator | 0.82 | Composer plugin that scans dependencies for berry-method-extensions.json and generates PHP stub files for Berry “extension methods”. Improves IDE autocomplete and supports static analysis (e.g., PHPStan) by exposing fluent methods via generated stubs. | 0 | 0 | 0 | 181 | 0 | 0.0 | 31.2 | MIT | — | |
| rawilk/laravel-stubs | 0.80 | Opinionated Laravel stubs with strict types, fewer docblocks, unguarded models, controllers without a base class, migrations without down methods, and added return type hints. Publish via artisan and optionally keep stubs updated via composer hooks. | 1 | 1 | 0 | 47 | 0 | 20.3 | 21.9 | MIT | 2 months ago | |
| php-decimal/stubs | 0.78 | IDE and static analysis stubs for the PHP Decimal extension. Provides PHP method/function signatures to improve autocompletion and type checking without requiring the extension source. For installing the actual extension, see php-decimal/php-decimal. | 6 | 6 | 6 | 28K | 1 | 0.3 | 49.6 | MIT | — | |
| spatie/laravel-stubs | 0.78 | Opinionated Laravel stub templates from Spatie. Publish customized stubs for migrations, controllers, and models: no down() in migrations, controllers don’t extend a base, no guarded attributes, more return types, fewer docblocks. | 252 | 252 | 37 | 26K | 0 | 22.2 | 30.7 | MIT | 5 months ago | |
| empi89/php-amqp-stubs | 0.77 | Provides PHP stub files for AMQP-related extensions, improving IDE autocomplete, static analysis, and type hints in projects that use AMQP functions/classes without bundling the actual extension. Useful for CI, analysis, and editor support. | 3 | 4 | 8 | 2K | 0 | 0.4 | 37.3 | — | — | |
| php-stubs/wordpress-stubs | 0.76 | WordPress core stubs for static analysis and IDE autocompletion (functions, classes, interfaces; no globals). Generated from johnpbloch/wordpress-core. Works with PHPStan (via phpstan-wordpress) and Psalm stubs config. Requires PHP 7.4/8.0. | 201 | 203 | 25 | 1M | 7 | 30.1 | 62.6 | MIT | 2 months ago | |
| codeception/stub | 0.71 | Create lightweight test doubles for PHP with Codeception Stub. Quickly generate stubs and mocks, define method returns and expectations, and override behavior on the fly—ideal for unit tests that need fast, flexible objects without full implementations. | 301 | 302 | 19 | 1M | 7 | 22.0 | 57.4 | MIT | 5 months ago |
How can I help you explore Laravel packages today?