Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Phpstan Extension Ide Helper Laravel Package

headercat/phpstan-extension-ide-helper

View on GitHub
Deep Wiki
Context7

phpstan-extension-ide-helper

PHPStan extension IDE helper, provides dummy PHPStan namespace classes and functions.

PHPStan is distributed via PHAR file rather than pure PHP files. While this is perfectly adequate for using PHPStan, it makes writing PHPStan's extensions a pain. Most IDEs and autocompletion tools cannot reference the code inside PHAR packages.

Installation

composer require --dev headercat/phpstan-extension-ide-helper

Or you can manually add into composer.json.

{
  "require-dev": {
    "phpstan/phpstan": "^2.0.0-or-any-version-you-want",
    "headercat/phpstan-extension-ide-helper": "*"
  }
}

Contributing

The job creating a new release will be automatically executed every each 30 minutes. But if PHPStan release a new version before next 30 minutes iteration occurs, you can write a comment on Issue #1 to execute the job manually.

How it works?

  1. Clone phpstan/phpstan-src repository to /phpstan.
  2. Scan all PHP files from /phpstan.
  3. Add return; after namespace declaration to all scanned files from step 2.
  4. Write them to a new directory /main.
  5. Find composer dependencies that starts with phpstan/ from /phpstan/composer.json.
  6. Add them to /main/composer.json.
  7. Done!

License

Licensed under the MIT license.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
calmfox/watch-sylius
damienfern/grpc-symfony-bundle
atoolo/index-bundle
atoolo/genai-bundle
coprotoai/laravel-ticket
davidjln/llm-carbon-bundle
cryonighter/valid-request-bundle
coolms/taxonomy-bundle
coolms/field-bundle
articulate-orm/symfony
aaix/laravel-tall-architect
ephoto/akeneo-connector
emmanuelballery/eb-plantumlbundle
emielburgman/symfony-visitor-beacon
emielburgman/symfony-visit-storage
emielburgman/symfony-security-headers
emielburgman/symfony-log-viewer
emarref/xdebug-bundle
emarref/pubnub-bundle
elriseio/finance-money-bundle