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.
whereTitle(), withCount()). Reduces technical debt in internal tooling.externalHasMany).post-update-cmd in composer.json)."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."
*"Laravel’s facades and Eloquent are powerful but IDE-agnostic—until now. This package bridges that gap by auto-generating PHPDocs for:
Auth::user() → full method autocompletion).Post::whereTitle() → dynamic where* methods).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."**"No more guessing what Auth:: or User::where() methods exist—your IDE will just know. Run php artisan ide-helper:generate once, and:
@property, @method, and relation docs from your DB schema.$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."*How can I help you explore Laravel packages today?