Package

Barryvdh Laravel Ide Helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

Package

barryvdh/laravel-ide-helper

View on GitHub →

Overview

What Barryvdh Laravel Ide Helper does

Laravel IDE Helper addresses the common issue of incomplete IDE autocompletion by generating accurate PHPDocs for facade classes and Eloquent models.

This package makes Laravel development more seamless by bridging gaps in static analysis. Facades in Laravel resolve dependencies at runtime, leading to situations where an IDE might not offer autocompletion or reports undefined methods. Laravel IDE Helper solves this by generating helper files that enable IDEs to recognize and suggest methods from facades and database schema attributes.

Developers can use Artisan commands to produce these helper files. The command `ide-helper:generate` creates a file with PHPDoc annotations for all the facades used in a project. This file ensures that an IDE can parse and provide completions for methods and properties that arise from facades, which are otherwise dynamically resolved at runtime.

Working with models, the `ide-helper:models` command inspects the database schema and generates corresponding PHPDocs for properties and relations directly onto model classes or in a separate file. This process relies on having a working database connection to retrieve accurate information from the schema. Additional options allow developers to customize how and where these PHPDocs are written, including the ability to ignore certain models or directories.

The package also supports generating autocompletion data for Laravel's factory builders and handles PHPStorm metadata, which maps container bindings to specific classes for enhanced IDE integration. Primarily geared towards development, Laravel IDE Helper is beneficial in larger projects where comprehensive IDE support enhances overall productivity.

This overview was generated by AI from the package README and may not reflect the latest release.

Read the full README →

Barryvdh Laravel Ide Helper Related Articles

Laravel Debugbar v4.0.0 is released image

Laravel Debugbar v4.0.0 is released

Read article
Laravel Debugbar Gets a Big UI Update image

Laravel Debugbar Gets a Big UI Update

Read article

Acquaint Softtech

Acquaint Softtech offers AI-ready Laravel developers who onboard in 48 hours at $3000/Month with no lengthy sales process and a 100 percent money-back guarantee.

Acquaint Softtech

PhpStorm

The go-to PHP IDE with extensive out-of-the-box support for Laravel and its ecosystem.

PhpStorm

No Compromises

Joel and Aaron, the two seasoned devs from the No Compromises podcast, are now available to hire for your Laravel project. ⬧ Flat rate of $9500/mo. ⬧ No lengthy sales process. ⬧ No contracts. ⬧ 100% money back guarantee.

No Compromises

Pushsilver

Pushsilver is simple invoicing for freelancers and small studios — send polished invoices, automate reminders, and get paid on time without the bloat.

Pushsilver

Harpoon: Next generation time tracking and invoicing

The next generation time-tracking and billing software that helps your agency plan and forecast a profitable future.

Harpoon: Next generation time tracking and invoicing

Shift

Running an old Laravel version? Instant, automated Laravel upgrades and code modernization to keep your applications fresh.

Shift