qmetrics.net

laravel-ide-helper

Laravel IDE helper and PHPDoc generator package

A Composer package for Laravel apps that builds helper files and PHPDoc so IDEs can autocomplete facades, models, fluent APIs, and container bindings from your project source.

Overview

Laravel IDE Helper generates helper artifacts tailored to your application so editors can offer accurate autocompletion for Laravel-specific APIs. Output is derived from files in your project and can be regenerated whenever dependencies or code change.

The php artisan ide-helper:generate command produces an idehelper.php file (name configurable) that documents facades, optional helper functions, macros with type hints, and real-time facades. It can use an in-memory SQLite connection when a default database is unavailable, and composer hooks can rerun generation after dependency updates.

php artisan ide-helper:models introspects model tables and relationships to add PHPDocs for properties and related methods. You can write comments into model classes, emit a separate ide-helper models file, or add only a mixin tag; reset mode replaces existing docblocks. Options control magic where methods, relation count or exists attributes, generics annotations, external builder methods, and custom relationship types.

Additional commands cover PhpStorm container meta (.phpstorm.meta.php) for IoC resolution hints and optional factory builder return types in configuration. Fluent migration helpers and model hooks let you extend generation when defaults are insufficient. The package targets recent Laravel releases on the current major branch, with older Laravel versions supported by prior releases.

Key features

  • Facade PHPDoc via ide-helper:generate
  • Model property docs from database schema
  • PhpStorm meta for container bindings
  • Configurable output filenames and directories
  • Macro and mixin documentation support
  • Fluent migration method completions
  • Model hooks for custom metadata
  • Composer post-update regeneration hooks

Use cases

  • Autocomplete Laravel facades in PhpStorm
  • Document Eloquent models without manual PHPDoc
  • Keep IDE helpers in sync after composer updates
  • Mixin-only model docs to avoid duplicates
  • IoC factory pattern hints in PhpStorm

Tags

Similar software

Prettier

Opinionated multi-language code formatter

Prettier enforces consistent style by parsing code and reprinting it with fixed rules and line wrapping. It supports many web and data languages.

  • AST-based consistent reprinting
  • Wide language and plugin support
  • Editor and CI integration
JavaScriptDetails →
★ 52.5k⟳ yesterdayMIT

Oxc

Rust-based JavaScript and TypeScript compiler toolkit

Oxc bundles a parser, linter, formatter, transformer, resolver, and minifier for JavaScript and TypeScript. Oxlint and Oxfmt run via npx for everyday lint and format tasks.

  • Oxlint ESLint-compatible linter
  • Oxfmt Prettier-compatible formatter
  • JavaScript and TypeScript parser
RustLinux, macOSDetails →
★ 23.8k⟳ todayMIT

PHP Parser

PHP library for parsing and manipulating PHP ASTs

A PHP package that parses PHP source into an abstract syntax tree for analysis and code transformation. It targets static analysis and programmatic rewriting workflows.

  • PHP 7 and 8 AST parsing
  • Partial parse on invalid code
  • AST dump and pretty-print
PHPDetails →
★ 17.5k⟳ 5 days agoBSD-3-Clause

typescript-eslint

ESLint tooling for linting TypeScript codebases

typescript-eslint connects ESLint to TypeScript syntax and ships parser services plus lint rules. It enables standard and type-aware linting for JavaScript and TypeScript projects.

  • TypeScript parser for ESLint
  • Parser services for other tools
  • Large standard rule catalog
TypeScriptDetails →
★ 16.5k⟳ todayMIT

quicktype

Type and serializer generator from JSON, Schema, and GraphQL

Quicktype infers strongly typed models and serializers from JSON samples, JSON Schema, TypeScript, or GraphQL. Output targets many programming languages via the web app, CLI, or JavaScript API.

  • JSON and JSON Schema inputs
  • GraphQL and TypeScript sources
  • Twenty-five plus target languages
TypeScriptWeb, macOS, Windows, CLIDetails →
★ 13.9k⟳ 2 months agoApache-2.0

JavaParser

Java source parser and abstract syntax tree toolkit

JavaParser builds an AST for Java source from early language versions through current releases. Optional symbol resolution links code elements to declarations for analysis and refactoring.

  • Java 1 through modern syntax parsing
  • Programmatic AST traversal
  • Optional JavaSymbolSolver module
JavaDetails →
★ 6.2k⟳ 2 days agoApache-2.0 · open core