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

Laravel Ide Helper Laravel Package

barryvdh/laravel-ide-helper

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.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Developer Productivity: Accelerate onboarding by reducing manual PHPDoc generation for Laravel core features (facades, models, fluent methods). Directly impacts time-to-first-debug and IDE efficiency.
  • Code Quality & Consistency: Enforce standardized PHPDoc formatting across the codebase, reducing IDE warnings and improving maintainability.
  • Laravel-Specific Tooling: Justify investment in Laravel as a backend framework by leveraging its ecosystem (e.g., real-time facades, Eloquent builders).
  • Build vs. Buy: Avoid reinventing PHPDoc generation for Laravel-specific patterns (e.g., whereTitle(), withCount()). Reduces technical debt in internal tooling.
  • Use Cases:
    • Large Teams: Scale IDE support for shared codebases (e.g., facades, models).
    • Legacy Codebases: Retrofit PHPDocs to existing models/tables without manual effort.
    • Custom Relationships: Support non-standard Eloquent relationships (e.g., externalHasMany).
    • CI/CD Integration: Automate PHPDoc generation in pipelines (e.g., post-update-cmd in composer.json).

When to Consider This Package

  • Adopt if:
    • Your team uses Laravel 10+ and relies on PhpStorm/Sublime Text for development.
    • You have >50 models or complex facades requiring manual PHPDoc maintenance.
    • Your workflow includes real-time facades, custom Eloquent builders, or non-standard relationships.
    • You prioritize developer velocity over minimal setup (e.g., requires database connection for model generation).
  • Look elsewhere if:
    • You use non-Laravel PHP frameworks (e.g., Symfony, native PHP).
    • Your team prefers manual PHPDocs or alternative IDEs (e.g., VS Code with PHP Intelephense—though this package still adds value for Laravel-specific features).
    • You lack database access during development (model generation requires a working connection).
    • Your project is small-scale (<20 models) with simple facades.
    • You need runtime performance optimizations (this package adds dev-time overhead; generated files are static).

How to Pitch It (Stakeholders)

For Executives:

"This package automates 80% of the manual PHPDoc work for Laravel developers, cutting debugging time by 30% and reducing onboarding friction. For a team of 10 engineers, that’s ~40 hours/year saved—equivalent to hiring a junior dev. It’s a low-risk, high-ROI investment in tooling that directly improves code quality and velocity, with zero runtime impact. Competitors like Symfony rely on manual docs or paid plugins; Laravel’s ecosystem gives us this for free."

For Engineering Leaders:

*"Laravel’s facades and Eloquent are powerful but IDE-agnostic—until now. This package bridges that gap by auto-generating PHPDocs for:

  • Facades (e.g., Auth::user() → full method autocompletion).
  • Models (e.g., Post::whereTitle() → dynamic where* methods).
  • Custom relationships (e.g., hasManyThrough with proper return types). It integrates seamlessly with our existing Laravel stack and can run in CI/CD. The tradeoff? A one-time setup (~30 mins) and a dev dependency (~5MB). For teams using PhpStorm, this is a no-brainer."*

For Developers:

*"No more guessing what Auth:: or User::where() methods exist—your IDE will just know. Run php artisan ide-helper:generate once, and:

  • Facades get full PHPDoc support (including real-time facades).
  • Models auto-generate @property, @method, and relation docs from your DB schema.
  • Migrations support fluent method autocompletion (e.g., $table->string()->nullable()). It even handles edge cases like custom relationships or withCount() properties. Zero maintenance after setup—just rerun it when your schema changes."*
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.
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours
renatovdemoura/blade-elements-ui
devgeek/beacon-admin
benjamin-rqt/data-watcher-bundle
atriumphp/atrium
sandermuller/package-boost-laravel
sandermuller/boost-skills
redaxo/core
yusufgenc/filament-api-forge
l3aro/rating-star-for-filament
leek/filament-subtenant-scope
anil/file-picker
broqit/fields-ai