kr0lik/laravel-phpstan-rules

There is no license information available for the latest version (1.0.0) of this package.

Provides extended rules of phpstan/phpstan for laravel.

Installs: 2

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:phpstan-extension

1.0.0 2025-04-23 13:52 UTC

This package is auto-updated.

Last update: 2025-04-23 13:54:06 UTC


README

Install

Add to composer.json in repositories section:

{
    "type": "vcs",
    "url": "https://github.com/kr0lik/laravel-phpstan-rules.git"
}

Run command:

composer require --dev kr0lik/laravel-phpstan-rules

Copy example config for laravel app

cp ./vendor/kr0lik/library-phpstan-rules/phpstan.example ./phpstan.neon

Or Copy example config for packages without laravel

cp ./vendor/kr0lik/library-phpstan-rules/general-no-larastan.example ./phpstan.neon

Use

vendor/bin/phpstan analyse

Develop:

docker pull davidzapata/php-composer-alpine:8.2
docker run -v .:/var/www --rm davidzapata/php-composer-alpine:8.2 composer install
docker run -v .:/var/www --rm davidzapata/php-composer-alpine:8.2 vendor/bin/pint
docker run -v .:/var/www --rm davidzapata/php-composer-alpine:8.2 vendor/bin/phpstan analyse
docker run -v .:/var/www --rm davidzapata/php-composer-alpine:8.2 vendor/bin/phpunit tests