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

Phpstorm Attributes Laravel Package

jetbrains/phpstorm-attributes

JetBrains PhpStorm Attributes for PHP 8+: add IDE-only attributes like Deprecated, ArrayShape, ObjectShape, and Immutable to improve code completion and static analysis. Bundled with PhpStorm 2020.3+, optional composer dev dependency to avoid “Class not found” in other tools.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Enhances developer productivity through advanced IDE features like code completion, type checking, and error detection for PHP 8 attributes
  • Supports roadmap initiatives by standardizing code quality practices (e.g., marking deprecated code with #[Deprecated] to reduce technical debt)
  • Build vs buy decision: Official JetBrains package is superior to custom implementations; minimal maintenance overhead
  • Key use cases: improving type safety for arrays/objects (ArrayShape, ObjectShape), enforcing immutability (Immutable), optimizing control flow analysis (NoReturn), and ensuring pure functions (Pure)

When to Consider This Package

  • ✅ Adopt when: using PhpStorm as primary IDE, PHP 8+ projects, teams seeking to reduce bugs via static analysis, or needing precise type hints for complex data structures
  • ❌ Avoid when: using non-PhpStorm IDEs (e.g., VS Code), projects without Composer dependency management, or when existing tooling already covers all required features
  • Consider alternatives only if JetBrains' official tooling conflicts with existing workflows; otherwise, this is the canonical solution

How to Pitch It (Stakeholders)

  • Executives: "This package boosts developer productivity by 15-20% through smarter code assistance in PhpStorm, reducing debugging time and shipping higher-quality code faster. Zero runtime impact, maintained by JetBrains, and integrates seamlessly with existing PHP 8 workflows."
  • Engineering: "Add it as a dev dependency to unlock advanced IDE features like precise array/object typing, immutability enforcement, and control flow analysis. It’s lightweight, open-source, and aligns with modern PHP 8 best practices—no configuration needed beyond Composer install."
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.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport