Download the PHP package based/laravel-typescript without Composer
On this page you can find all versions of the php package based/laravel-typescript. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download based/laravel-typescript
More information about based/laravel-typescript
Files in based/laravel-typescript
Package laravel-typescript
Short Description Transform Laravel models into TypeScript interfaces
License MIT
Homepage https://github.com/lepikhinb/laravel-typescript
Informations about the package laravel-typescript
Laravel TypeScript
The package lets you generate TypeScript interfaces from your Laravel models.
Introduction
Say you have a model which has several properties (database columns) and multiple relations.
Laravel TypeScript will generate the following TypeScript interface:
Laravel TypeScript supports:
- [x] Database columns
- [x] Model relations
- [x] Model accessors
- [ ] Casted attributes
Installation
Laravel 8 and PHP 8 are required. You can install the package via composer:
You can publish the config file with:
This is the contents of the published config file:
Usage
Generate TypeScript interfaces.
Example usage with Vue 3:
Testing
Credits
- Boris Lepikhin
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-typescript with dependencies
doctrine/dbal Version ^3.1
illuminate/contracts Version ^8.37|^9.0|^10.0
spatie/laravel-package-tools Version ^1.11.0