Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Laravel Typescript Transformer

Laravel Typescript Transformer Laravel Package

spatie/laravel-typescript-transformer

Convert PHP classes, enums, and more into TypeScript types automatically in Laravel. Mark PHP code with attributes, handle complex types and generics, and generate TS-friendly definitions (and even functions) to keep frontend types in sync.

View on GitHub
Deep Wiki
Context7

spatie/laravel-typescript-transformer converts PHP types into clean, maintainable TypeScript definitions for Laravel apps. Annotate classes (e.g., #[TypeScript]), enums, and more, then generate matching TS types to keep frontend and backend contracts in sync.

It supports advanced typing scenarios—nullable types, unions, generics, and even generating TypeScript functions—making it a solid choice for teams sharing models across PHP and TS.

  • Transform PHP classes into exported TS type definitions
  • Convert PHP enums into TS union types
  • Understand complex/nullable types and advanced type hints
  • Support generics and richer type inference
  • Extensible pipeline for custom transformations
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport