A collection of PHPStan rules to enforce best practices and standards in database migration files for various frameworks and tools.
composer require --dev bellangelo/phpstan-migration-rulesThe 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- EnforceCollationRule - Enforces that all Phinx
table()method calls specify a collation (default:utf8)
Rules for Symfony and Doctrine Migrations are coming soon.
Rules for Laravel Migrations are coming soon.