Generates IDE helper files for Laravel to provide accurate autocompletion and PHPDocs for facades, models, and more.
Laravel IDE Helper is a Composer package that generates IDE helper files to improve the development experience in Laravel projects. It creates PHPDoc annotations for facades, models, and other Laravel components, enabling accurate autocompletion and type hints in IDEs like PhpStorm. This tool solves the problem of missing or incorrect code intelligence when working with Laravel's dynamic features.
Laravel developers using IDEs like PhpStorm, VS Code, or Sublime Text who want better autocompletion, code navigation, and type safety for facades, models, and container instances.
Developers choose Laravel IDE Helper because it automatically generates precise, up-to-date PHPDocs directly from the project's source, eliminating manual annotations and ensuring IDE support stays synchronized with the codebase. It uniquely bridges Laravel's dynamic nature with static analysis tools.
IDE Helper for Laravel
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Generates _ide_helper.php with precise PHPDocs for Laravel facades and real-time facades, enabling IDE autocompletion directly from the project's source code, as highlighted in the README's usage section.
Automatically creates property and method annotations for Eloquent models based on database schema, relations, and custom methods, reducing manual documentation effort, with options like --write for direct model updates.
Adds PHPDocs for Laravel's Fluent migration methods (e.g., $table->string()->nullable()), improving autocompletion in database migrations when enabled via config.
Generates .phpstorm.meta.php to enhance autocompletion for service container instances, making dependency resolution clearer in IDEs like PhpStorm, as described in the PhpStorm Meta section.
Generating model PHPDocs requires a working database connection to introspect tables, which can be problematic in environments without immediate DB access, as noted in the README's model generation steps.
Helper files must be regenerated after code or database changes, adding a manual step to the workflow that can be forgotten, despite automation options in composer scripts.
Writing PHPDocs directly to models with options like --write can lead to duplicate or conflicting annotations, especially when using --write-mixin, requiring careful management to avoid IDE warnings.