Book Image

Expert PHP 5 Tools

By : Dirk Merkel
Book Image

Expert PHP 5 Tools

By: Dirk Merkel

Overview of this book

Even if you find writing PHP code easy, writing code that is efficient and easy to maintain and reuse is not so straightforward. Self-taught PHP developers and programmers transitioning from other languages often lack the knowledge to work with PHP on an enterprise level. They need to take their PHP development skills to that level by learning the skills and tools necessary to write maintainable and efficient code.This book will enable you to take your PHP development skills to an enterprise level by teaching you the skills and tools necessary to write maintainable and efficient code. You will learn how to perform activities such as unit testing, enforcing coding standards, automating deployment, and interactive debugging using tools created for PHP developers – all the information in one place. Your code will be more maintainable, efficient, and self-documented.From the design phase to actually deploying the application, you will learn concepts and apply them using the best-of-breed tools available in PHP.Experienced developers looking for expertise in PHP development will learn how to follow best practices within the world of PHP. The book contains many well-documented code samples and recipes that can be used as a starting point for producing quality code.Specifically, you will learn to design an application with UML, code it in Eclipse with PDT, document it with phpDocumentor, debug it interactively with Xdebug, test it by writing PHPUnit tests, manage source code in Subversion, speed up development and increase stability by using Zend Framework, pull everything together using continuous integration, and deploy the application automatically with Phing – all in one book. The author's experience in PHP development enables him to share insights on using enterprise tools, in a clear and friendly way.
Table of Contents (15 chapters)
Expert PHP 5 Tools
Credits
About the Author
About the Reviewers
Preface

Common use cases


Here are a couple of use cases that typify how you can leverage Subversion in your day-to-day development activity.

Scenario 1: After a phone call with a panicked client, you are forced to access the production server to fix an issue that is affecting thousands of users. Unfortunately, after a couple of edits, the page returns a 500 HTTP error, which probably means that you made it worse than before. Unfortunately, in your rush to fix the problem, you didn't make a proper backup of the file(s) you were editing and have no way of reverting to the previous version. For the time being, let's ignore the fact that you probably shouldn't be working on your production environment. After all, we have all done it—even if it is wrong.

Scenario 2: That open source project you started while commuting an hour on the train every day has been kicked into overdrive. SourceForge.net named it project of the month and suddenly you have several qualified volunteers that want to contribute...