Awesome list about PHP code bases migrations, legacy refactoring and instant upgrades. (This list is not about database migrations.)
Do you have an old PHP project that you need to migrate to never version, different framework, templating system or config format? This is the place.
The goal of this post is to keep it short, useful and reliable. Work with legacy often very frustrating, as behind corner there is a new black hole of problems to suck us in.
Our mission is to keep this list practical and light so we can see the light in every legacy project :)
- Welcomed are: tools, posts, case-studies and short videos.
- Avoid conference videos, as they're long and without clickable resources.
- Avoid books, as they're opinionated, long, often outdated and hard to use. If you need to contribute last 2, try awesome-php.
- rector/rector - Tool for Instant Upgrades and Instant Refactoring of any PHP 5.3+ code
- How we Migrated from Nette to Symfony in 3 Weeks [case study]
- migrify/vendor-patches - PHP tool to effectively and temporarily patch your
/vendor
files
- migrify/static-detector - PHP tool that shows where do you have static method and where they're called from
- migrify/sniffer-fixer-to-ecs - Convert PHP CS Fixer or PHP_CodeSniffer config to
ecs.php
for EasyCodingStandard
- migrify/neon-to-yaml - PHP tool that migrates NEON to YAML syntax
- migrify/config-transformer - PHP tool that migrates Symfony configs with YAML/XML syntax to PHP
- migrify/latte-to-twig - PHP tool that migrated LATTE templates to TWIG
- migrify/template-checker - PHP tool, that checks
$this->render()
contains existing template files - migrify/class-presence - PHP tool that checks NEON/YAML/TWIG/LATTE files for existing classes and class constants
- migrify/psr4-switcher - PHP tool that helps you to migrate random classes to PSR-4
- migrify/symfony-route-usage - Symfony bundle that logs route usage and show unused routes
- julienbourdeau/route-usage - Laravel bundle that logs route usage and show unused routes