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
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| spatie/typescript-transformer | 0.92 | 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. | 403 | 403 | 59 | 1M | 0 | 29.5 | 54.5 | MIT | 2 months ago | |
| spatie/laravel-data | 0.91 | 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 | |
| diephp/laravel-resources-typescript | 0.89 | — | 3 | 3 | 0 | 91 | 0 | 0.1 | 19.0 | MIT | — | |
| vagebond/runtype | 0.89 | Runtype brings lightweight runtime type checking to PHP and Laravel. Define expected types and validate values as your app runs, catching mismatches early and making data flow safer and clearer without relying solely on static analysis. | 26 | 26 | 3 | 2K | 1 | 9.3 | 29.5 | MIT | 7 months ago | |
| abetwothree/laravel-ts-publish | 0.89 | 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 | |
| kiwilan/laravel-typescriptable | 0.88 | 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 | |
| nolanos/laravel-model-typescript-transfomer | 0.88 | 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 | — | — | |
| based/laravel-typescript | 0.88 | 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 | |
| janit/typescript-generator-bundle | 0.88 | 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 | — | |
| oi-lab/oi-laravel-ts | 0.87 | A Laravel package that automatically generates TypeScript interfaces from your Eloquent models, with relationship support, custom casts, DataObjects, PHPDoc types, watch mode, and namespace filters for customization. | 1 | 1 | 0 | 259 | 0 | 19.8 | 34.0 | MIT | 1 month ago | |
| hemilrajput/laravel-typegen | 0.87 | 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 | |
| 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 | |
| juststeveking/laravel-data-object-tools | 0.86 | Handy tools and helpers for working with data objects in Laravel. Simplifies creating, validating, transforming, and casting DTOs, helping you keep application data flow clean, type-safe, and consistent across your codebase. | 66 | 66 | 9 | 70 | 1 | 1.1 | 4.3 | MIT | 2 years ago | |
| irontec/typescript-generator-bundle | 0.86 | 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 | |
| spatie/piper | 0.85 | Piper is a pipe operator-first PHP utility library that ports Laravel’s array and string helpers into standalone functions. Chain filter, map, join, lower, replace, and more with the |> operator, mixing array and string primitives in one clean pipeline. | 57 | 57 | 2 | 536 | 0 | 13.5 | 15.5 | MIT | 4 months ago | |
| spatie/value-object | 0.85 | Deprecated Spatie package for PHP 8+ data transfer objects. Create typed DTOs from arrays with casting, validation, and attribute mapping (e.g., nested keys). Consider migrating to spatie/laravel-data or cuyz/valinor. | 2,221 | 2,223 | 187 | 0 | 0 | 12.9 | — | MIT | 4 years ago | |
| spatie/laravel-url-ai-transformer | 0.84 | Spatie package for transforming URLs and web content with AI. Define Laravel AI agent transformers to extract structured data, generate summaries, or apply custom transformations; results are stored in the database and run via an Artisan command. | 50 | 50 | 7 | 223 | 0 | 21.8 | 11.8 | MIT | 2 weeks ago | |
| stubbedev/laravel-stoli | 0.84 | A Laravel package by stubbedev that integrates Stoli into your application, providing a service provider, configuration options, and a straightforward Composer-based setup so you can add Stoli functionality to Laravel projects with minimal effort. It follows standard Laravel conventions. | 0 | 0 | 0 | 405 | 0 | 20.2 | 42.4 | MIT | 2 days ago | |
| spatie/laravel-package-tools | 0.84 | PackageServiceProvider base class for Laravel packages that simplifies registering config files, migrations, views, translations, routes, commands, assets, and view components, with publishable resources and a configurable install command. | 951 | 963 | 164 | 15M | 0 | 37.4 | 64.0 | MIT | 1 month ago | |
| spatie/laravel-markdown-response | 0.84 | Serve markdown versions of Laravel HTML pages to AI agents and bots. Detects text/markdown Accept headers, AI user agents, or .md URLs; converts via local PHP or Cloudflare Workers AI, caches results, and supports HTML preprocessing. | 84 | 83 | 9 | 60K | 0 | 22.2 | 46.0 | MIT | 2 weeks ago |
How can I help you explore Laravel packages today?