Laravel IDE Helper

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

Tool
Composer
vv3.8.0
14,972 stars
MIT License

Repository Health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum. How we score it →
72 /100 Good
Development Activity 64
Maintenance 48
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 8 apps in this directory

PHP
82%
Other

Akaunting

Invoicing Finance

10,282

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 12%
Updated 1 weeks ago
PHP
48%
AGPL 3.0

Crater

Invoicing Finance

8,360

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
66
Dependency
Built with
PHP 48%
Vue 40%
Updated 2 years ago
PHP
84%
MIT

Databasement

Databases · Developer Tools · Devops

2,610

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 84%
Blade 15%
Updated 1 weeks ago
PHP
84%
Other

Invoice Ninja

Invoicing Finance · Project Management

10,523

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
95
Repo Health
83
Technical
62
Dependency
Built with
PHP 84%
Updated 1 weeks ago
PHP
65%
AGPL 3.0

LinkStack

Marketing

3,942

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

View details
73
Repo Health
56
Technical
68
Dependency
Built with
PHP 65%
Blade 35%
Updated 2 weeks ago
PHP
61%
Other

OpnForm

Forms Surveys · Marketing

3,990

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

View details
91
Repo Health
75
Technical
65
Dependency
Built with
PHP 61%
Vue 27%
Updated 1 weeks ago
PHP
48%
AGPL 3.0

solidtime

Invoicing Finance · Productivity

9,114

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
68
Dependency
Built with
PHP 48%
TypeScript 28%
Vue 22%
Updated 1 weeks ago
PHP
72%
MIT

Yaffa

Invoicing Finance

113

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
67
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