Slide 5
Slide 5 text
PHP 7 Upgrade Analysis Tools
● PHP 7 Compatibility Checker (php7cc) – unmaintained, so I discounted it.
● Phan – Proved to be extremely slow, so I discounted it.
● PHP_CodeSniffer (phpcs) + PHP 7 Compatibility sniffs – very nice, seems comprehensive.
● PHP 7 Migration Assistant (php7mar) – Nice and simple, also seemed to do the job well yet
didn’t find quite as much as phpcs. Easy to tweak the checks!
composer global require phpcompatibility/php-compatibility
phpcs --config-set installed_paths ~/.composer/vendor/phpcompatibility/php-compatibility/
phpcs -p -s --colors --extensions=php –standard=PHPCompatibility \
--exclude=PHPCompatibility.Extensions.RemovedExtensions --runtime-set testVersion 7.2 .
git clone https://github.com/Alexia/php7mar.git
php php7mar/mar.php -f=”/path/to/check” -r=”/path/for/output”