PHPackages                             niefufeng/laravel-model-typescript - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. niefufeng/laravel-model-typescript

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

niefufeng/laravel-model-typescript
==================================

transform laravel models to typescript interfaces

0.1.0(2y ago)01.1k—0%PHPPHP ^8.1

Since Apr 26Pushed 2y ago1 watchersCompare

[ Source](https://github.com/niefufeng/laravel-model-typescript)[ Packagist](https://packagist.org/packages/niefufeng/laravel-model-typescript)[ RSS](/packages/niefufeng-laravel-model-typescript/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (6)Versions (3)Used By (0)

注意事项
----

[](#注意事项)

- php &gt;= 8.1
- 如果使用注释给 getter 设置返回值，返回 `Illuminate\\Database\\Eloquent\\Casts\\Attribute` 类，不能简写为 `Attribute`
- 如果使用 `Illuminate\\Database\\Eloquent\\Casts\\Attribute` 作为返回值，需要给 `get` 也写上返回值，比如 `Attribute::get(fn(): string => 'hello')`，否则将会生成 `any`

食用方式
----

[](#食用方式)

```
# install
composer require niefufeng/laravel-model-typescript --dev
# publish config files
php artisan vendor:publish --tag=model-typescript
# generate
php artisan model-typescript:generate
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~131 days

Total

2

Last Release

981d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b5ffa4ffb8b29b1c6f03f1edf585a219bf14143cafb96c39478f620ae872d694?d=identicon)[niefufeng](/maintainers/niefufeng)

---

Top Contributors

[![niefufeng](https://avatars.githubusercontent.com/u/3882254?v=4)](https://github.com/niefufeng "niefufeng (3 commits)")

### Embed Badge

![Health badge](/badges/niefufeng-laravel-model-typescript/health.svg)

```
[![Health](https://phpackages.com/badges/niefufeng-laravel-model-typescript/health.svg)](https://phpackages.com/packages/niefufeng-laravel-model-typescript)
```

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[larastan/larastan

Larastan - Discover bugs in your code without running it. A phpstan/phpstan extension for Laravel

6.4k43.5M5.2k](/packages/larastan-larastan)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)[illuminate/queue

The Illuminate Queue package.

20331.4M1.2k](/packages/illuminate-queue)[flarum/core

Delightfully simple forum software.

211.3M1.9k](/packages/flarum-core)[orchestra/canvas

Code Generators for Laravel Applications and Packages

21017.2M158](/packages/orchestra-canvas)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
