One Artisan command turns your Eloquent models, Enums, FormRequests & API Resources into fully-typed TypeScript. AST parsing · Zod schemas · CI safety gates.
Every Laravel-to-TypeScript bridge pattern you need — handled deeply, out of the box, without a single line of configuration.
Deeply inspects casts, accessors, hidden columns, and custom Cast classes — mapped to exact TypeScript interfaces.
Learn moreMark one model; TypeGen auto-discovers every related model via BFS graph walk, including polymorphic MorphTo unions.
Learn moreParses validation rules into typed DTOs with nested dot-notation, wildcard arrays, Enum resolution, and Zod compilation.
Learn moreUses nikic/php-parser to statically analyze JsonResource toArray(). when() / whenLoaded() become optional keys automatically.
Learn moreInspects controller signatures to resolve route param types. Auto-increments → number, UUIDs → string. Ziggy-ready.
Learn moreRun --check in GitHub Actions to block stale types. In-memory diff against committed files exits with code 1 on drift.
Learn moreBefore TypeGen, every model change required a manual TypeScript update. One Artisan command eliminates that forever.
One command. Zero configuration. Ships immediately.
Install in under 60 seconds. Save hours every sprint. Never manually update a TypeScript type again.