assoconnect/php-quality-config

Installs: 11 465

Dependents: 9

Suggesters: 0

Security: 0

Stars: 0

Watchers: 5

Forks: 1

Open Issues: 2

pkg:composer/assoconnect/php-quality-config


README

Build Status Quality Gate Status

Installation

composer require --dev assoconnect/php-quality-config

In rector, you can use the ruleset:

return RectorConfig::configure()
    ->withSets([
        __DIR__ . '/vendor/assoconnect/php-quality-config/src/Rector/rules.php',
    ])

PHPStan

Including in this package

  • EnforceHttpsLinksRule to ban insecure links containing http: in string scalars and PHPDoc blocks
  • ForbidIdenticalClassComparisonRule to ban strict comparison of objects
  • DateTimeMustNotBeUsedRule to ban the usage of DateTime and enforce the use of DateTimeImmutable for safer and more predictable date handling

From other packages

  • phpstan/phpstan-phpunit
  • phpstan/phpstan-strict-rules
  • phpstan/phpstan-webmozart-assert
  • roave/no-floaters
  • shipmonk/phpstan-rules
  • thecodingmachine/phpstan-strict-rules

PHPCS / Code Style

Including in this package

  • PSR-12 coding standard

From other packages

  • SlevomatCodingStandard.Namespaces.UnusedUses