Expert PHP 5 Tools

Proven enterprise development tools and best practices for designing, coding, testing, and deploying PHP applications

Expert PHP 5 Tools

Progressing
Dirk Merkel

Proven enterprise development tools and best practices for designing, coding, testing, and deploying PHP applications
$29.99
$49.99
RRP $29.99
RRP $49.99
eBook
Print + eBook
$12.99 p/month

Get Access

Get Unlimited Access to every Packt eBook and Video course

Enjoy full and instant access to over 3000 books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.

+ Collection
Free Sample

Book Details

ISBN 139781847198389
Paperback468 pages

About This Book

  • Best practices for designing, coding, testing, and deploying PHP applications – all the information in one book
  • Learn to write unit tests and practice test-driven development from an expert
  • Set up a professional development environment with integrated debugging capabilities
  • Develop your own coding standard and enforce it automatically
  • Document your code for easy maintainability for yourself and others

Who This Book Is For

This book has been written for professional developers new to PHP and experienced PHP developers who want to take their skills to the next level by learning enterprise-level tools and techniques.

Table of Contents

Chapter 1: Coding Style and Standards
Coding standard considerations
A PHP coding standard
Coding standard adherence and verification
Summary
Chapter 2: Documentation with phpDocumentor
Code-level documentation
Introducing phpDocumentor
Summary
Chapter 3: The Eclipse Integrated Development Environment
Why Eclipse?
Introducing PDT
Installing Eclipse
Basic Eclipse concepts
A PDT sample project
PDT features
Zend Studio for Eclipse
Summary
Chapter 4: Source Code and Version Control
Common use cases
A brief history of source code control
CVS
Introducing Subversion
Subversion conventions and best practices
Summary
Chapter 5: Debugging
First line of defense: syntax check
Logging
Outputting debug information
Introducing Xdebug
Summary
Chapter 6: PHP Frameworks
Writing your own framework
Evaluating and choosing frameworks
Popular PHP frameworks
Zend Framework application
Summary
Chapter 7: Testing
Testing methods
Types of testing
Introducing PHPUnit
Summary
Chapter 8: Deploying Applications
Goals and requirements
Deploying your application
Automating deployment
Summary
Chapter 9: PHP Application Design with UML
Meta-model versus notation versus our approach
Levels of detail and purpose
Round-trip and one-way tools
Basic types of UML diagrams
Diagrams
Summary
Chapter 10: Continuous Integration
The satellite systems
Environment setup considerations
CI tools
Continuous integration with phpUnderControl
Summary

What You Will Learn

  • Set up a development environment that provides code completion, syntax highlighting, interactive debugging, code templates, and more
  • Define a coding standard and automate compliance checks
  • Generate developer documentation in various formats using code-level comments and phpDocumentor
  • Manage revision and branching, tag, and merge code using a distributed version control system
  • Create your own debugging library and use Xdebug for interactive debugging
  • Shorten the development cycle by leveraging a suitable framework for your application
  • Write unit tests using PHPUnit and practice test-driven development
  • Automate application deployment and configuration using Phing—a PHP build and automation tool
  • Sketch class diagrams, sequence diagrams, and use cases using UML
  • Quickly find bugs and conflicts by setting up a continuous integration environment that automatically stages, tests, and documents your project

Chapter 1. Coding Style and Standards
Learn how to define a coding standard that suits your development process and how to enforce it using PHP_CodeSniffer

Chapter 2. Documentation with phpDocumentor
Learn how to properly document your code with phpDocumentor and generate well formatted developer documentation

Chapter 3. The Eclipse Integrated Development Environment
Learn how to install, customize, and use the free PDT plug-in for Eclipse to create a powerful IDE for PHP development

Chapter 4. Source Code and Version Control
Explore the ins and outs of subversion for distributed version control for development teams. Extend subversion functionality with PHP scripts

Chapter 5. Debugging
Write your own flexible debugging library or master remote interactive debugging with Xdebug.

Chapter 6. PHP Frameworks
Evaluate, compare, and choose frameworks that suit your projects and development style. Master the most commonly used modules of the Zend framework

Chapter 7. Testing
Testing methods and types, unit testing, creating comprehensive test suites with PHPUnit, and test-driven development

Chapter 8. Deploying Applications
Guidelines for automated and reversible application deployment, automating upgrades, and deployments with Phing

Chapter 9. PHP Application Design with UML
Introduction to UML, class diagrams, sequence diagrams, and use cases

Chapter 10. Continuous Integration
Use CI, keep costs down and save time by discovering bugs and conflicts in your projects, in the early stages

In Detail

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.

Authors

Table of Contents

Chapter 1: Coding Style and Standards
Coding standard considerations
A PHP coding standard
Coding standard adherence and verification
Summary
Chapter 2: Documentation with phpDocumentor
Code-level documentation
Introducing phpDocumentor
Summary
Chapter 3: The Eclipse Integrated Development Environment
Why Eclipse?
Introducing PDT
Installing Eclipse
Basic Eclipse concepts
A PDT sample project
PDT features
Zend Studio for Eclipse
Summary
Chapter 4: Source Code and Version Control
Common use cases
A brief history of source code control
CVS
Introducing Subversion
Subversion conventions and best practices
Summary
Chapter 5: Debugging
First line of defense: syntax check
Logging
Outputting debug information
Introducing Xdebug
Summary
Chapter 6: PHP Frameworks
Writing your own framework
Evaluating and choosing frameworks
Popular PHP frameworks
Zend Framework application
Summary
Chapter 7: Testing
Testing methods
Types of testing
Introducing PHPUnit
Summary
Chapter 8: Deploying Applications
Goals and requirements
Deploying your application
Automating deployment
Summary
Chapter 9: PHP Application Design with UML
Meta-model versus notation versus our approach
Levels of detail and purpose
Round-trip and one-way tools
Basic types of UML diagrams
Diagrams
Summary
Chapter 10: Continuous Integration
The satellite systems
Environment setup considerations
CI tools
Continuous integration with phpUnderControl
Summary

Book Details

ISBN 139781847198389
Paperback468 pages
Read More

Recommended for You

AJAX and PHP: Building Modern Web Applications 2nd Edition
$ 23.99
Object-Oriented Programming with PHP5
$ 14.40