PHPackages                             morningtrain/laravel-stubs - 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. morningtrain/laravel-stubs

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

morningtrain/laravel-stubs
==========================

Opinionated Laravel stubs

v1.3.1(1y ago)32.3k↓50%MITPHPPHP ^8.2

Since Jun 2Pushed 1y ago4 watchersCompare

[ Source](https://github.com/Morning-Train/laravel-stubs)[ Packagist](https://packagist.org/packages/morningtrain/laravel-stubs)[ Docs](https://github.com/morningtrain/laravel-stubs)[ RSS](/packages/morningtrain-laravel-stubs/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)Dependencies (4)Versions (10)Used By (0)

[![laravel-stubs](https://user-images.githubusercontent.com/11147193/171592427-7b5dc778-72c7-4e2e-9418-03aba194e80d.png)](https://user-images.githubusercontent.com/11147193/171592427-7b5dc778-72c7-4e2e-9418-03aba194e80d.png)

Opinionated Laravel stubs
=========================

[](#opinionated-laravel-stubs)

[![Latest Version on Packagist](https://camo.githubusercontent.com/646e5c838294676e3396d1bba9dc0dae947291823a7f258b8cd16c762d88fbf0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d6f726e696e67747261696e2f6c61726176656c2d73747562732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/morningtrain/laravel-stubs)[![GitHub Tests Action Status](https://github.com/Morning-Train/laravel-stubs/workflows/run-tests/badge.svg)](https://github.com/Morning-Train/laravel-stubs/workflows/run-tests/badge.svg)[![Total Downloads](https://camo.githubusercontent.com/f8424872b1406a68d1230f85654f8c94aefb341fec40ec3667a3abbadd2a9eb0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d6f726e696e67747261696e2f6c61726176656c2d73747562732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/morningtrain/laravel-stubs)

This repo contains opinionated versions of the Laravel stubs. The most notable changes are:

- migrations don't have a `down` function
- controllers don't extend a base controller
- none of the model attributes are guarded
- use return type hints where possible
- most docblocks have been removed

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require morningtrain/laravel-stubs --dev
```

If you want to keep your stubs up to date with every update, add this composer hook to your composer.json file:

```
"scripts": {
    "post-update-cmd": [
        "@php artisan morningtrain-stub:publish --force"
    ]
}
```

Usage
-----

[](#usage)

You can publish the stubs using this command:

```
php artisan morningtrain-stub:publish
```

Testing
-------

[](#testing)

```
composer test
```

Credits
-------

[](#credits)

- [SimonJnsson](https://github.com/SimonJnsson)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance39

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 79.4% 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 ~154 days

Recently: every ~203 days

Total

7

Last Release

516d ago

PHP version history (2 changes)v1.0.0PHP ^8.0

v1.2.0PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/26a15e64fdf0498cb20d749d27ad48d095e842f8ac7c5d285248729a7d0e3e53?d=identicon)[SimonJnsson](/maintainers/SimonJnsson)

---

Top Contributors

[![SimonJnsson](https://avatars.githubusercontent.com/u/11147193?v=4)](https://github.com/SimonJnsson "SimonJnsson (27 commits)")[![peterbrinck](https://avatars.githubusercontent.com/u/6154068?v=4)](https://github.com/peterbrinck "peterbrinck (5 commits)")[![freekmurze](https://avatars.githubusercontent.com/u/483853?v=4)](https://github.com/freekmurze "freekmurze (2 commits)")

---

Tags

laravel-stubsmorningtrain

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/morningtrain-laravel-stubs/health.svg)

```
[![Health](https://phpackages.com/badges/morningtrain-laravel-stubs/health.svg)](https://phpackages.com/packages/morningtrain-laravel-stubs)
```

###  Alternatives

[wireui/wireui

TallStack components

1.8k1.3M16](/packages/wireui-wireui)[spatie/laravel-stubs

Opinionated Laravel stubs

252616.9k3](/packages/spatie-laravel-stubs)[ramonrietdijk/livewire-tables

Dynamic tables for models with Laravel Livewire

21147.4k](/packages/ramonrietdijk-livewire-tables)

PHPackages © 2026

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