spatie/typescript-transformer
Automatically generate TypeScript definitions from your PHP/Laravel code. spatie/typescript-transformer scans classes and types, then outputs .d.ts files so your frontend stays in sync with backend models, DTOs and enums with minimal manual typing.
You can install the package via composer:
composer require spatie/typescript-transformer
If you're using Laravel, you should install the Laravel specific package instead:
composer require spatie/laravel-typescript-transformer
You can find the full Laravel installation and setup instructions here.
How can I help you explore Laravel packages today?