Laravel IDE Helper

Generate accurate PHPDocs for Laravel facades, models, and macros to power IDE autocompletion.

Tool
Composer
vv3.7.0
14,967 stars
MIT License

Repository Health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum. How we score it →
74 /100 Good
Development Activity 64
Maintenance 56
Community 76
Maturity 60
Momentum 40

Technical Analysis

AI-assessed by reading the actual repository — architecture, code quality, innovation, and documentation. How we score it →
80 /100 Excellent
Architecture 78
Code Quality 80
Innovation 80
Learning Curve 78

Laravel IDE Helper is a developer tool that generates helper files enabling your IDE to provide accurate autocompletion for Laravel’s dynamic facades, Eloquent models, and macros. Because generation is driven by the actual files and database schema in your project, the produced PHPDocs stay in sync with your code.

Installed as a dev dependency, it exposes artisan commands that write _ide_helper.php, model docblocks, and a PhpStorm meta file. This restores the static-analysis and autocompletion experience that Laravel’s magic methods and container bindings would otherwise hide from editors like PhpStorm, VS Code, and Sublime Text.

What You Get

  • Artisan command ide-helper:generate that produces _ide_helper.php for all facades
  • Model docblock generation from table columns, relations, and accessors via ide-helper:models
  • A PhpStorm .phpstorm.meta.php file mapping container make() calls to concrete classes
  • Configurable output: separate files, in-place model writes, or @mixin annotations
  • Support for macros, mixins, real-time facades, and custom relationship return types

Common Use Cases

  • Enabling reliable autocompletion for Laravel facades in PhpStorm or VS Code
  • Documenting Eloquent model properties and query-builder methods for type hints
  • Regenerating helper files automatically after composer update via post-update hooks

Under The Hood

Architecture - The package registers an IdeHelperServiceProvider that wires up artisan commands (GeneratorCommand, ModelsCommand, MetaCommand) under src/Console. Each command uses PHP reflection plus barryvdh/reflection-docblock and composer/class-map-generator to walk facades, container bindings, and Eloquent models, then renders PHPDoc output through Blade-style templates in php-templates.

Tech Stack - Written in PHP 8.2+, it depends on Laravel’s illuminate/console, illuminate/database, illuminate/filesystem, and illuminate/support components (v11-v13). Dev tooling includes PHPUnit, Orchestra Testbench, Larastan/PHPStan, and PHP-CS-Fixer.

Code Quality - The repo ships a tests suite run under Testbench, a committed phpstan-baseline.neon for static analysis, and PHP-CS-Fixer configuration, indicating disciplined maintenance and consistent style enforcement.

API Design - Developer experience centers on a handful of well-named artisan commands with intuitive flags (-W, -R, -M, --dir, --ignore) and a publishable config file, keeping setup to a single composer require --dev and one command.

Used by 9 apps in this directory

PHP
82%
Other

Akaunting

Invoicing Finance

10,149

Open-source online accounting for small businesses and freelancers — invoices, expenses, and reporting without monthly fees or vendor lock-in.

View details
98
Repo Health
73
Technical
63
Dependency
Built with
PHP 82%
Blade 13%
Updated 1 weeks ago
PHP
48%
AGPL 3.0

Crater

Invoicing Finance

8,349

Open source invoicing and billing platform for freelancers and small businesses — create estimates, track expenses, accept Stripe payments, and run recurring invoices from your own server.

View details
54
Repo Health
68
Technical
68
Dependency
Built with
PHP 48%
Vue 40%
Updated 2 years ago
PHP
82%
MIT

Databasement

Databases · Developer Tools · Devops

2,468

Self-hosted database backup manager with a web UI for scheduling, encrypting, and restoring MySQL, PostgreSQL, MongoDB, SQL Server, SQLite, Firebird, and Redis to S3, SFTP, Samba, or local storage.

View details
82
Repo Health
77
Technical
69
Dependency
Built with
PHP 82%
Blade 16%
Updated 1 weeks ago
PHP
85%
Other

Invoice Ninja

Invoicing Finance · Project Management

10,123

Self-hostable invoicing, time-tracking, and multi-gateway payment platform for freelancers and small businesses, with built-in e-invoicing compliance for EU and global standards.

View details
97
Repo Health
83
Technical
62
Dependency
Built with
PHP 85%
Updated 2 weeks ago
PHP
65%
AGPL 3.0

LinkStack

Marketing

3,888

Self-hosted, privacy-focused Linktree alternative with themes, analytics, and a drag-and-drop admin panel.

View details
66
Repo Health
56
Technical
68
Dependency
Built with
PHP 65%
Blade 35%
Updated 2 months ago
PHP
63%
Other

OpnForm

Forms Surveys · Marketing

3,752

Build unlimited, embeddable forms with no code — powered by AI, logic rules, and real-time analytics

View details
90
Repo Health
75
Technical
68
Dependency
Built with
PHP 63%
Vue 29%
Updated 2 weeks ago
PHP
46%
AGPL 3.0

solidtime

Invoicing Finance · Productivity

8,933

Modern open-source time tracker for freelancers and agencies with invoicing, multi-org support, and Toggl/Clockify migration built in.

View details
84
Repo Health
81
Technical
70
Dependency
Built with
PHP 46%
TypeScript 29%
Vue 22%
Updated 1 weeks ago
PHP
63%
AGPL 3.0

Vanguard Backup

Devops

37

Self-hosted backup automation for Ubuntu and Debian servers with S3 storage, SSH-based file and database backup, and multi-channel notifications.

View details
34
Repo Health
80
Technical
69
Dependency
Built with
PHP 63%
Blade 36%
Updated 11 months ago
PHP
72%
MIT

Yaffa

Invoicing Finance

108

Self-hosted personal finance app for long-term financial planning with AI-powered transaction parsing and investment tracking.

View details
80
Repo Health
78
Technical
69
Dependency
Built with
PHP 72%
Vue 24%
Updated 1 weeks ago

Join founders buildingwith open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on Substack
Join 750+ subscribers