New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

mltstephane/laravel-stubs

Opinionated Laravel stubs
413
Install
composer require mltstephane/laravel-stubs
Latest Version:1.1.0
PHP:^8.2
Laravel:12
Older releases:11
License:MIT
Last Updated:Oct 13, 2025
Links: GitHub  ·  Packagist
Maintainer: MltStephane

Opinionated Laravel stubs

Installation

You can install the package via composer:

composer require mltstephane/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 stub:publish-opinionated --force"
    ]
}

Usage

You can publish the stubs using this command:

php artisan stub:publish-opinionated

Testing

composer test

Credits

License

The MIT License (MIT). Please see License File for more information.

Related Packages

spatie/laravel-stubs

Opinionated Laravel stubs

791,166 252
spatie/elasticsearch-search-string-parser

Build Elasticsearch queries based of a query string

24,278 51
spatie/backtrace

A better backtrace

208,709,058 437
spatie/laravel-package-tools

Tools for creating Laravel packages

185,188,882 951
spatie/image-optimizer

Easily optimize images using PHP

93,761,798 2,882

Version History

Version Released PHP Laravel License
1.1.0 ^8.2 ^12.0 MIT
1.0.2 ^8.2 ^11.0 MIT
1.0.1 ^8.2 ^11.0 MIT
1.0.0 ^8.2 ^11.0 MIT