Modernising the Legacy
summary
Practical plan to modernise a PHP legacy app: define a measurable goal (example: reduce checkout dropouts by 10%), write Behat feature scenarios for that feature only, then TDD small objects with PHPSpec or PHPUnit and refactor related code until the green scenario passes. Add Symfony components incrementally via Composer—add DependencyInjection first, then Twig, Console, HttpFoundation—swap concrete repos for interfaces to inject fast in-memory fakes for tests. Result: piecewise migration works and can become a full Symfony app once routing/controllers are decoupled.
AI-written summary · about
