Modernizing Legacy Applications in PHP

Modernizing Legacy Applications in PHP
Author :
Publisher : Packt Publishing Ltd
Total Pages : 286
Release :
ISBN-10 : 9781787127784
ISBN-13 : 1787127788
Rating : 4/5 (788 Downloads)

Book Synopsis Modernizing Legacy Applications in PHP by : Paul M. Jones

Download or read book Modernizing Legacy Applications in PHP written by Paul M. Jones and published by Packt Publishing Ltd. This book was released on 2016-08-31 with total page 286 pages. Available in PDF, EPUB and Kindle. Book excerpt: Get your code under control in a series of small, specific steps About This Book 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. 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! 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 In Detail 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 like 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. Style and approach This book gives developers an easy-to-follow, practical and powerful process to bring their applications up to a modern baseline. Each step in the book is practical, self-contained and moves you closer to the end goal you seek: maintainable code. As you follow the exercises in the book, the author almost anticipates your questions and you will have the answers, ready to be implemented on your project.


Modernizing Legacy Applications in PHP Related Books

Modernizing Legacy Applications in PHP
Language: en
Pages: 286
Authors: Paul M. Jones
Categories: Computers
Type: BOOK - Published: 2016-08-31 - Publisher: Packt Publishing Ltd

GET EBOOK

Get your code under control in a series of small, specific steps About This Book Learn to extract and replace legacy artifacts, Improve your application from th
Working Effectively with Legacy Code
Language: en
Pages: 457
Authors: Michael Feathers
Categories: Computers
Type: BOOK - Published: 2004-09-22 - Publisher: Prentice Hall Professional

GET EBOOK

Get more out of your legacy systems: more performance, functionality, reliability, and manageability Is your code easy to change? Can you get nearly instantaneo
Modern PHP
Language: en
Pages: 251
Authors: Josh Lockhart
Categories: Computers
Type: BOOK - Published: 2015-02-16 - Publisher: "O'Reilly Media, Inc."

GET EBOOK

PHP is experiencing a renaissance, though it may be difficult to tell with all of the outdated PHP tutorials online. With this practical guide, you’ll learn h
Modernizing Enterprise Java
Language: en
Pages: 164
Authors: Markus Eisele
Categories: Computers
Type: BOOK - Published: 2021-10-21 - Publisher: "O'Reilly Media, Inc."

GET EBOOK

While containers, microservices, and distributed systems dominate discussions in the tech world, the majority of applications in use today still run monolithic
PHP 7: Real World Application Development
Language: en
Pages: 1041
Authors: Doug Bierer
Categories: Computers
Type: BOOK - Published: 2016-09-30 - Publisher: Packt Publishing Ltd

GET EBOOK

Use new features of PHP 7 to solve practical, real-world problems faced by PHP developers like yourself every day. About This Book This course covers the new fe