Skip to content

Instantly share code, notes, and snippets.

@matusstafura
Last active December 27, 2022 14:31
Show Gist options
  • Save matusstafura/59c149f512f2e6202a785b8d4668f521 to your computer and use it in GitHub Desktop.
Save matusstafura/59c149f512f2e6202a785b8d4668f521 to your computer and use it in GitHub Desktop.
Must have Laravel Packages

Pest PHP source

Install

composer require pestphp/pest --dev --with-all-dependencies
composer require pestphp/pest-plugin-laravel --dev
php artisan pest:install

Use

./vendor/bin/pest

Laravel Debugbar source

composer require barryvdh/laravel-debugbar --dev

Laravel N+1 Query Detector github

composer require beyondcode/laravel-query-detector --dev

Larastan github

Install

composer require nunomaduro/larastan:^2.0 --dev
echo "includes:
    - ./vendor/nunomaduro/larastan/extension.neon

parameters:

    paths:
        - app

    # The level 9 is the highest level
    level: 5

    ignoreErrors:
        - '#PHPDoc tag @var#'

    excludePaths:
        - ./*/*/FileToBeExcluded.php

    checkMissingIterableValueType: false" > phpstan.neon.dist

Use

./vendor/bin/phpstan analyse

Insights source

Install

composer require nunomaduro/phpinsights --dev

Use

./vendor/bin/phpinsights
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment