

Modernizing Legacy Applications in PHP: Make your legacy applications organized, testable and free of globals, (Paperback)
Key item features
- Modernizing Legacy Applications in PHP: Make your legacy applications organized, testable and free of globals, (Paperback)
- Author: Packt Publishing
- ISBN: 9781787124707
- Format: Paperback
- Publication Date: 2016-08-31
- Page Count: 286
Specs
- Book formatPaperback
- Fiction/nonfictionNon-Fiction
- GenreComputing & Internet
- Pub date2016-08-31
- Pages286
- SubgenreLanguages - PHP
How do you want your item?
About this item
Product details
Get your code under control in a series of small, specific steps
Key Features:
- Learn to extract and replace legacy artifacts,
- Improve your application from the ground up while keeping your codebase fully operational,
- Improve the quality of your legacy applications.
Book Description:
Have you noticed that your legacy PHP application is composed of page scripts placed directly in the document root of the web server? Or, do your page scripts, along with any other classes and functions, combine the concerns of model, view, and controller into the same scope? Is the majority of the logical flow incorporated as include files and global functions rather than class methods? Working with such a legacy application feels like dragging your feet through mud, doesn't it?This book will show you how to modernize your application in terms of practice and technique, rather than in terms of using tools such as frameworks and libraries, by extracting and replacing its legacy artifacts. We will use a step-by-step approach, moving slowly and methodically, to improve your application from the ground up. We'll show you how dependency injection can replace both the new and global dependencies. We'll also show you how to change the presentation logic to view files and the action logic to a controller. Moreover, we'll keep your application running the whole time. Each completed step in the process will keep your codebase fully operational with higher quality. When we are done, you will be able to breeze through your code like the wind. Your code will be autoloaded, dependency-injected, unit-tested, layer-separated, and front-controlled. Most of the very limited code we will add to your application is specific to this book. We will be improving ourselves as programmers, as well as improving the quality of our legacy application.
What You Will Learn:
- Replace global and new with dependency injection
- Extract SQL statements to gateways
- Convert action logic to controllers
- Remove repeated logic in page scripts
- Create maintainable PHP code from crufty legacy PHP
Who this book is for:
PHP developers from all skill levels will be able to get value from this book and will be able to transform their spaghetti code applications to clean, modular applications. If you are in the midst of a legacy refactor or you find yourself in a state of despair caused by the code you have inherited, this is the book for you. All you need is to have PHP 5.0 installed, and you're all set to change the way you maintain and deploy your code!
- Modernizing Legacy Applications in PHP: Make your legacy applications organized, testable and free of globals, (Paperback)
- Author: Packt Publishing
- ISBN: 9781787124707
- Format: Paperback
- Publication Date: 2016-08-31
- Page Count: 286
Specifications
Book format
Fiction/nonfiction
Genre
Pub date
Similar items you might like
Based on what customers bought
Learning Fuelphp for Effective PHP Development $34.63
$3463current price $34.63Learning Fuelphp for Effective PHP Development
At Home with Blue: Soothing Spaces for Restful Living, (Hardcover) $26.32 Was $35.00
$2632current price $26.32, Was $35.00$35.00At Home with Blue: Soothing Spaces for Restful Living, (Hardcover)
Robert C. Martin Working Effectively with Legacy Code, (Paperback) $53.46
$5346current price $53.46Robert C. Martin Working Effectively with Legacy Code, (Paperback)
Expert's Voice in Open Source Foundations of PEAR: Rapid PHP Development, (Paperback) $35.37
$3537current price $35.37Expert's Voice in Open Source Foundations of PEAR: Rapid PHP Development, (Paperback)
The Applications Of Elliptic Functions (Paperback) $31.99 Was $38.04
$3199current price $31.99, Was $38.04$38.04The Applications Of Elliptic Functions (Paperback)
The Art of Micro Frontends - Second Edition: Build highly scalable, distributed web applications with multiple teams, (Paperback) $36.26
$3626current price $36.26The Art of Micro Frontends - Second Edition: Build highly scalable, distributed web applications with multiple teams, (Paperback)
Programming Languages with Applications to Biology and Security: Essays Dedicated to Pierpaolo Degano on the Occasion of, (Paperback) $62.60
$6260current price $62.60Programming Languages with Applications to Biology and Security: Essays Dedicated to Pierpaolo Degano on the Occasion of, (Paperback)
Routledge Revivals Integrated Software Reuse: Management and Techniques, (Paperback) $34.49
$3449current price $34.49Routledge Revivals Integrated Software Reuse: Management and Techniques, (Paperback)
AJAX Programming: Create Powerful Web And Mobile Applications, (Paperback) $30.40
$3040current price $30.40AJAX Programming: Create Powerful Web And Mobile Applications, (Paperback)
Laravel: Up & Running: A Framework for Building Modern PHP Apps (Paperback) $38.59
$3859current price $38.59Laravel: Up & Running: A Framework for Building Modern PHP Apps (Paperback)
Expert's Voice Practical Web 2.0 Applications with PHP, (Paperback) $45.21
$4521current price $45.21Expert's Voice Practical Web 2.0 Applications with PHP, (Paperback)
Mastering Blazor WebAssembly: A step-by-step guide to developing advanced single-page applications with Blazor WebAssembly (Paperback) $43.13
$4313current price $43.13Mastering Blazor WebAssembly: A step-by-step guide to developing advanced single-page applications with Blazor WebAssembly (Paperback)
A Blueprint for Production-Ready Web Applications (Paperback) $36.26
$3626current price $36.26A Blueprint for Production-Ready Web Applications (Paperback)
El Sistema Constitucional de Los Estados Unidos de América, (Paperback) $35.00
$3500current price $35.00El Sistema Constitucional de Los Estados Unidos de América, (Paperback)
Traité Des Fonctions Elliptiques Et De Leurs Applications; Volume 2, (Paperback) $32.00
$3200current price $32.00Traité Des Fonctions Elliptiques Et De Leurs Applications; Volume 2, (Paperback)
PHP 8 Basics: For Programming and Web Development, (Paperback) $29.44
$2944current price $29.44PHP 8 Basics: For Programming and Web Development, (Paperback)
Lecture Notes in Computer Science Optimal Interprocedural Program Optimization: A New Framework and Its Application, Book 1428, (Paperback) $54.99
$5499current price $54.99Lecture Notes in Computer Science Optimal Interprocedural Program Optimization: A New Framework and Its Application, Book 1428, (Paperback)
Ajax and PHP: Building Responsive Web Applications (Paperback) $37.98
$3798current price $37.98Ajax and PHP: Building Responsive Web Applications (Paperback)


