spatie / laravel-stubs by spatie

Opinionated Laravel stubs
332,469
235
4
Package Data
Maintainer Username: spatie
Maintainer Contact: freek@spatie.be (Freek Van der Herten)
Package Create Date: 2020-03-21
Package Last Update: 2024-03-08
Home Page: https://spatie.be/open-source
Language: PHP
License: MIT
Last Refreshed: 2024-04-12 03:15:54
Package Statistics
Total Downloads: 332,469
Monthly Downloads: 7,477
Daily Downloads: 308
Total Stars: 235
Total Watchers: 4
Total Forks: 38
Total Open Issues: 0

Opinionated Laravel stubs

Latest Version on Packagist GitHub Tests Action Status Total Downloads

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

Support us

We invest a lot of resources into creating best in class open source packages. You can support us by buying one of our paid products.

We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on our contact page. We publish all received postcards on our virtual postcard wall.

Installation

You can install the package via composer:

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

Usage

You can publish the stubs using this command:

php artisan spatie-stub:publish

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email freek@spatie.be instead of using the issue tracker.

Credits

License

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