oi-lab/oi-laravel-ts
Generates TypeScript interfaces from Laravel Eloquent models, including relationships, casts, PHPDoc types, and DataObjects. Supports watch mode, namespace filtering, UUID/ULID key typing, and optional JSON-LD output.
Adopt if:
Look elsewhere if:
spatie/laravel-api-resources or zircote/swagger-php).*"This package automates the creation of TypeScript interfaces for all Laravel models, cutting frontend development time by 30% and eliminating API contract mismatches. For a $500/year MIT-licensed solution, we gain:
*"This replaces manual .d.ts files or Swagger docs with a zero-maintenance solution that:
php artisan oi:gen-ts --watch to auto-update types.Property 'x' does not exist on type 'Y' errors."**"This is a force multiplier for full-stack teams:
.d.ts files.How can I help you explore Laravel packages today?