Download the PHP package spatie/laravel-typescript-transformer without Composer
On this page you can find all versions of the php package spatie/laravel-typescript-transformer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download spatie/laravel-typescript-transformer
More information about spatie/laravel-typescript-transformer
Files in spatie/laravel-typescript-transformer
Package laravel-typescript-transformer
Short Description Transform your PHP structures to TypeScript types
License MIT
Homepage https://github.com/spatie/typescript-transformer
Informations about the package laravel-typescript-transformer
Transform PHP types to TypeScript
Always wanted type safety within PHP and TypeScript without duplicating a lot of code? Then you will like this package! Let's say you have an enum:
Wouldn't it be cool if you could have an automatically generated TypeScript definition like this:
This package will automatically generate such definitions for you, the only thing you have to do is adding this annotation:
You can even take it a bit further and generate TypeScript from classes:
This will be transformed to:
Want to know more? You can find the documentation here.
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you've found a bug regarding security please mail [email protected] instead of using the issue tracker.
Credits
- Ruben Van Assche
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-typescript-transformer with dependencies
illuminate/console Version ^8.83|^9.30|^10.0|^11.0
spatie/laravel-package-tools Version ^1.12
spatie/typescript-transformer Version ^2.4