Skip to content

A collection of PHPStan rules to enforce best practices and standards in database migration files for various frameworks and tools.

License

Notifications You must be signed in to change notification settings

Bellangelo/phpstan-migration-rules

Repository files navigation

PHPStan Rules for Database Migrations

A collection of PHPStan rules to enforce best practices and standards in database migration files for various frameworks and tools.

Installation

composer require --dev bellangelo/phpstan-migration-rules

The extension will be automatically registered if you have phpstan/extension-installer installed. Otherwise, add it manually to your phpstan.neon:

includes:
    - vendor/bellangelo/phpstan-migration-rules/extension.neon

Rules

Phinx

  • EnforceCollationRule - Enforces that all Phinx table() method calls specify a collation (default: utf8)

Symfony/Doctrine

Rules for Symfony and Doctrine Migrations are coming soon.

Laravel

Rules for Laravel Migrations are coming soon.

About

A collection of PHPStan rules to enforce best practices and standards in database migration files for various frameworks and tools.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages