spatie/typescript-transformer
Convert PHP classes, enums, and DTOs into TypeScript types with spatie/typescript-transformer. It supports complex types, generics, and generated TypeScript functions, making frontend/backend type sharing simple.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| spatie/laravel-typescript-transformer | 0.90 | 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. | 400 | 400 | 37 | 1M | 0 | 25.0 | 52.8 | MIT | 4 months ago | |
| spatie/laravel-data | 0.88 | Spatie Laravel Data lets you define rich data objects once and reuse them as form requests, API transformers, and TypeScript definitions. It supports automatic validation, resource transformation, lazy properties, and constructing objects from request data. | 1,801 | 1,815 | 293 | 4M | 6 | 51.4 | 63.7 | MIT | 1 week ago | |
| janit/typescript-generator-bundle | 0.87 | A Symfony bundle that generates TypeScript definitions from PHP classes, helping keep frontend and backend types in sync. It automates type generation so TypeScript clients stay aligned with your application models. | 16 | 16 | 5 | 0 | 1 | 0.4 | — | MIT | — | |
| irontec/typescript-generator-bundle | 0.87 | Symfony bundle that generates TypeScript definitions from PHP classes, helping keep backend models and frontend types in sync. Automate interface generation for APIs and DTOs, improve IDE autocomplete, and reduce type duplication. Ideal for Symfony apps needing consistent frontend/backend contracts. | 3 | — | 10 | — | 1 | 0.7 | — | EUPL-1.1 | 1 year ago | |
| nolanos/laravel-model-typescript-transfomer | 0.87 | Generates TypeScript definitions for Laravel Eloquent models via spatie/laravel-typescript-transformer. Maps database column types to TypeScript, respects hidden/visible fields, handles nullable columns, and works with php artisan typescript:generate. | 0 | 7 | — | 275 | — | 1.8 | 33.7 | — | — | |
| spatie/typed | 0.87 | Userland improved PHP type system with type inference and runtime checking: generics, union types, typed collections/lists, tuples, and structs. Proof-of-concept package from Spatie to add stronger type guarantees without language-level support. | 316 | 317 | 15 | 18 | 0 | 1.9 | 0.2 | MIT | 5 years ago | |
| yabx/ts-bundle | 0.87 | yabx/ts-bundle is a PHP package for bundling and managing TypeScript assets in your application. It streamlines TypeScript build integration with straightforward configuration, helping keep frontend assets organized, maintainable, and easier to manage within your development workflow. | 2 | 3 | 0 | 5 | 0 | 0.0 | 5.9 | — | — | |
| based/laravel-typescript | 0.86 | based/laravel-typescript generates TypeScript definitions from Laravel models, resources, and routes, keeping frontend and backend types in sync via artisan commands and configurable output. | 396 | 399 | 53 | 1K | 10 | 6.9 | 13.1 | MIT | 5 years ago | |
| codebuds/generate-ts-bundle | 0.86 | — | 5 | 5 | 0 | 1 | 0 | 0.0 | 0.9 | MIT | — | |
| abetwothree/laravel-ts-publish | 0.86 | A Laravel package for publishing TypeScript definitions from your application. It streamlines keeping PHP and TypeScript types in sync, reducing manual duplication and helping frontend and backend stay aligned in TypeScript-powered Laravel projects. | 6 | — | 1 | — | 35 | 30.6 | 14.3 | MIT | 1 week ago | |
| php-collective/dto | 0.86 | php-collective/dto is a lightweight PHP package for defining typed data transfer objects. Hydrate DTOs from arrays or Laravel requests, cast nested DTOs and collections, validate data, and keep application boundaries clean with simple, expressive classes. | 31 | 30 | 2 | 3K | 0 | 15.0 | 30.7 | MIT | 3 months ago | |
| vinatis/typescript-generator | 0.86 | Generates TypeScript definitions from your Laravel codebase, turning models, form requests, and API resources into typed interfaces so frontend and backend stay in sync. Keep type safety across your stack without writing declarations by hand. | 0 | 0 | 0 | 7 | 0 | 0.0 | 8.8 | EUPL-1.1 | — | |
| hemilrajput/laravel-typegen | 0.85 | Generate TypeScript types from your Laravel app so frontend and backend stay in sync. Define models, routes, or data structures once and let this package emit typed definitions automatically, reducing manual boilerplate and drift. | 2 | — | 0 | — | 0 | 20.0 | — | MIT | 1 week ago | |
| kiwilan/typescriptable-laravel | 0.85 | — | 39 | 39 | 9 | 2K | 7 | 12.1 | 27.7 | MIT | 1 year ago | |
| kiwilan/laravel-typescriptable | 0.85 | Generate TypeScript types from your Laravel models, resources, and form requests, keeping frontend and backend in sync with automatically updated type definitions and minimal configuration. | 39 | — | 9 | — | 7 | 3.1 | 4.5 | MIT | 1 year ago | |
| sensiolabs/typescript-bundle | 0.85 | SensioLabs TypeScriptBundle integrates the TypeScript compiler into Symfony, helping you compile .ts assets to JavaScript and manage TypeScript sources alongside your application. It provides bundle configuration and tooling for a smoother TypeScript workflow. | 39 | 39 | 11 | 25K | 4 | 1.8 | 40.3 | MIT | 1 year ago | |
| spatie/php-type-graph | 0.85 | Build a graph of all PHP types in your project. Analyze classes, interfaces, enums, and their relationships to understand your codebase structure, dependencies, and type usage. Useful for architecture insights, tooling, and visualization (WIP). | 10 | 10 | 4 | 0 | 0 | 0.7 | — | MIT | 2 years ago |
How can I help you explore Laravel packages today?