Skip to content

Booksellers & Trade Customers: Sign up for online bulk buying at trade.atlanticbooks.com for wholesale discounts

Booksellers: Create Account on our B2B Portal for wholesale discounts

Refactoring Legacy PHP: A Practical Guide to Modernizing Old Codebases: A Step-By-Step Guide To Refactoring, Testing, & Upgrading Legacy PHP Applicati

by Phiquill Publishing
Sold out
₹1,463.00
Original price ₹1,463.00
Original price ₹1,463.00
₹1,463.00
Current price ₹1,463.00

Imported Edition - Ships in 18-21 Days

Free Shipping in India on orders above Rs. 500

Request Bulk Quantity Quote
+91
Book cover type: Paperback
  • ISBN13: 9798289210371
  • Binding: Paperback
  • Subject: N/A
  • Publisher: Independently Published
  • Publisher Imprint: Independently Published
  • Publication Date:
  • Pages: 196
  • Original Price: USD 14.0
  • Language: English
  • Edition: N/A
  • Item Weight: 468 grams
  • BISAC Subject(s): Programming / General

What You Will Learn in This Book

  • Accurately assess and diagnose legacy PHP codebases: Understand what constitutes "legacy," identify common pitfalls like unmaintained code and its business risks, and set realistic modernization goals.
  • Prepare your development environment for safe refactoring: Master essential practices like version control with Git, establish stable local environments, and employ code archaeology techniques to understand unfamiliar systems.
  • Identify and address various code smells in PHP: Recognize specific anti-patterns such as global state abuse, spaghetti code, duplicated logic, and mixed HTML/PHP, and utilize static analysis tools like PHPStan, Psalm, and PHPMD for automated detection.
  • Implement a robust testing strategy for untestable code: Grasp the non-negotiable role of testing in legacy transformation, overcome challenges in testing tightly coupled code, introduce characterization tests, and set up testing frameworks like PHPUnit.
  • Apply core refactoring techniques incrementally and safely: Execute fundamental refactorings like Extract Method, Extract Class, and Rename, and learn to transition procedural code towards object-oriented structures while safely restructuring data.
  • Write effective tests for existing and refactored PHP code: Gain proficiency in PHPUnit, employ dependency injection and interfaces to make code testable, and utilize mocking and stubbing for isolated unit and integration testing.
  • Leverage design patterns to improve code robustness and flexibility: Understand how to apply creational, structural, and behavioral patterns (e.g., Factory, Adapter, Strategy) to solve common design problems and refactor away anti-patterns.
  • Navigate and execute PHP version upgrades strategically: Comprehend the benefits of modern PHP, understand backward compatibility breaks, and utilize tools like Rector and PHP Compatibility Checker for smoother transitions.
  • Integrate modern PHP features into legacy projects: Implement namespaces and Composer for autoloading, introduce strict types and scalar type declarations, and leverage modern OOP enhancements and improved error handling.
  • Architecturally refactor monolithic PHP applications: Decouple concerns using patterns like MVC, work with legacy databases, introduce API layers, and apply the Strangler Fig pattern for incremental system replacement.
  • Strategically adopt modern PHP frameworks: Evaluate the pros and cons of frameworks like Symfony or Laravel, understand when and how to incrementally integrate them into existing systems.
  • Tackle advanced legacy challenges effectively: Systematically eradicate global state, introduce Composer to projects lacking dependency management, address common security vulnerabilities, and optimize performance.
  • Cultivate a culture of continuous code quality and improvement: Integrate static analysis into CI/CD pipelines, monitor technical debt, balance pragmatism with perfectionism, and plan for the ongoing evolution of your codebase.

Trusted for over 49 years

Family Owned Company

Secure Payment

All Major Credit Cards/Debit Cards/UPI & More Accepted

New & Authentic Products

India's Largest Distributor

Need Support?

Whatsapp Us