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 | Generate IDE helper files for Laravel that provide accurate autocompletion and PHPDocs directly from your project source. Supports facades, Eloquent models, fluent methods, factory builders, and PhpStorm container meta, keeping IDE hints up to date. | 14,972 | 15,232 | 1,194 | 5M | 159 | 89.1 | 68.8 | MIT | 4 days 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 | 37K | 0 | 0.5 | 38.6 | — | — | |
| 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 | 10K | 1 | 0.5 | 55.1 | — | 7 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. | 597 | 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 | 51K | 0 | 0.0 | 55.3 | 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 | 43 | 816 | 5 | 3.8 | 12.8 | MIT | — | |
| binafy/laravel-stub | 0.84 | — | 98 | 98 | 8 | 15K | 0 | 12.4 | 32.5 | MIT | 6 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 | 12 | 333K | 3 | 30.2 | 65.5 | MIT | 1 week 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. | 151 | 154 | 35 | 74K | 3 | 17.3 | 42.3 | MIT | 7 months ago | |
| jetbrains/phpstorm-stubs | 0.83 | Official JetBrains stubs provide syntactically correct PHP function and class signatures, constants, and detailed PHPDoc for built-in PHP and most standard extensions. They power IDE completion, code inspection, type inference, and documentation popups in PhpStorm and other tools. | 1,397 | 1,373 | 824 | 2M | 0 | 43.3 | 50.8 | Apache-2.0 | 3 months 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.3 | 27.0 | NOASSERTION | 1 year ago | |
| carlescliment/chained-stubs-bundle | 0.83 | — | 0 | 0 | 1 | 0 | 0 | 0.0 | — | — | — | |
| purwantoid/package-generator | 0.83 | — | 0 | 0 | 0 | 0 | 0 | 2.6 | — | — | 10 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 | 45 | 0 | 14.9 | 20.8 | MIT | 5 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 | 30K | 1 | 0.3 | 50.1 | 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 | 36 | 32K | 0 | 16.7 | 30.6 | MIT | 8 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 | 36.6 | — | — | |
| php-stubs/wordpress-stubs | 0.76 | Stub declarations for WordPress core functions, classes, and interfaces (globals excluded), generated from johnpbloch's wordpress-core via php-stubs/generator. Helps plugin and theme developers leverage static analysis tools like PHPStan and Psalm, and improves IDE code completion and intellisense. | 212 | 204 | 27 | 1M | 8 | 32.7 | 65.3 | MIT | 1 month 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 | 9 months ago |
How can I help you explore Laravel packages today?