Search by

besmartand-pro / php-quality-config

roszkiewiczjakub

Shared PHPCS and PHPStan configs for BeSmartAnd.Pro projects

Package info

github.com/BeSmartAnd-Pro/php-quality-config

Language:Shell

pkg:composer/besmartand-pro/php-quality-config

Statistics

Installs: 446

Dependents: 3

Suggesters: 0

Stars: 0

Open Issues: 0

v1.1.2 2026-11-03 15:24 UTC

This package is auto-updated.

Last update: 2026-11-03 15:25:05 UTC


README

Wspólne konfiguracje PHPCS, PHPStan i TwigCS dla projektów BeSmartAnd.Pro. PHP 8.4+.

Instalacja

composer require --dev besmartand-pro/php-quality-config

Komendy uruchamiaj z katalogu głównego aplikacji.

PHPCS

Sprawdzenie kodu:

php vendor/bin/phpcs --standard=vendor/besmartand-pro/php-quality-config/phpcs/phpcs.xml src/

Automatyczne poprawki:

php vendor/bin/phpcbf --standard=vendor/besmartand-pro/php-quality-config/phpcs/phpcs.xml src/

PHPStan

Dodaj do phpstan.neon:

includes:
    - vendor/besmartand-pro/php-quality-config/phpstan/base.neon
php vendor/bin/phpstan analyse

TwigCS

php vendor/bin/twigcs --config vendor/besmartand-pro/php-quality-config/twigcs/.twig_cs.dist.php templates/