spatie/laravel-typescript-transformer
Convert PHP classes, enums, and more into TypeScript types automatically. Uses attributes to generate TS from your Laravel code, supports nullable and complex types, generics, and even TypeScript functions—keeping your backend and frontend types in sync.
|
Package
|
Constraint
|
|---|---|
| illuminate/contracts | ^11.0|^12.0|^13.0 |
| spatie/typescript-transformer | ^3.0 |
|
Package
|
Constraint
|
|---|---|
| friendsofphp/php-cs-fixer | ^3.0 |
| orchestra/testbench | ^9.0|^10.0|^11.0 |
| pestphp/pest | ^3.0|^4.2 |
| pestphp/pest-plugin-arch | ^3.0|^4.0 |
| pestphp/pest-plugin-laravel | ^3.0|^4.0 |
| phpstan/extension-installer | ^1.1 |
| phpstan/phpstan | ^2.0 |
| phpstan/phpstan-deprecation-rules | ^2.0 |
| phpstan/phpstan-phpunit | ^2.0 |
| spatie/laravel-data | ^4.0 |
How can I help you explore Laravel packages today?