bellangelo / phpstan-migration-rules
PHPStan rules for database migration tools (Phinx, Symfony, Laravel)
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Type:phpstan-extension
pkg:composer/bellangelo/phpstan-migration-rules
Requires
- php: ^7.4|^8.0
- phpstan/phpstan: ^1.9
Requires (Dev)
- phpunit/phpunit: ^9.5|^10.0
- robmorgan/phinx: ^0.13
This package is auto-updated.
Last update: 2025-12-06 23:25:12 UTC
README
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.