spatie/laravel-typescript-transformer
Convert PHP classes, enums, and complex types into TypeScript definitions automatically. This Laravel package handles generics, nullable types, and even TypeScript functions, keeping your frontend and backend types in sync.
|
Package
|
Constraint
|
|---|---|
| illuminate/contracts | ^11.0|^12.0|^13.0 |
| spatie/typescript-transformer | ^3.0@stable |
|
Package
|
Constraint
|
|---|---|
| friendsofphp/php-cs-fixer | ^3.0 |
| orchestra/testbench | ^9.0|^10.0|^11.0 |
| pestphp/pest | ^3.0|^4.2|^5.0 |
| pestphp/pest-plugin-arch | ^3.0|^4.0|^5.0 |
| pestphp/pest-plugin-laravel | ^3.0|^4.0|^5.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?