Modern PHP: New Features and Good Practices

Front Cover
"O'Reilly Media, Inc.", Feb 16, 2015 - Computers - 270 pages

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 how PHP has become a full-featured, mature language with object-orientation, namespaces, and a growing collection of reusable component libraries.

Author Josh Lockhart—creator of PHP The Right Way, a popular initiative to encourage PHP best practices—reveals these new language features in action. You’ll learn best practices for application architecture and planning, databases, security, testing, debugging, and deployment. If you have a basic understanding of PHP and want to bolster your skills, this is your book.

  • Learn modern PHP features, such as namespaces, traits, generators, and closures
  • Discover how to find, use, and create PHP components
  • Follow best practices for application security, working with databases, errors and exceptions, and more
  • Learn tools and techniques for deploying, tuning, testing, and profiling your PHP applications
  • Explore Facebook’s HVVM and Hack language implementations—and how they affect modern PHP
  • Build a local development environment that closely matches your production server
 

What people are saying - Write a review

LibraryThing Review

User Review  - GalenWiley - LibraryThing

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 how PHP has become a full-featured, mature ... Read full review

Contents

Chapter 1 The New PHP
1
Chapter 2 Features
5
Part II Good Practices
35
Chapter 3 Standards
37
Chapter 4 Components
51
Chapter 5 Good Practices
75
Part III Deployment Testing and Tuning
127
Chapter 6 Hosting
129
Chapter 9 Deployment
157
Chapter 10 Testing
165
Chapter 11 Profiling
181
Chapter 12 HHVM and Hack
187
Chapter 13 Community
205
Appendix A Installing PHP
209
Appendix B Local Development Environments
229
Index
237

Chapter 7 Provisioning
133
Chapter 8 Tuning
149
About the Author
245
Copyright

Other editions - View all

Common terms and phrases

About the author (2015)

Josh Lockhart is the creator of the Slim Framework for PHP. He also created and maintains PHP The Right Way, a popular initiative in the PHP community to encourage best practices and provide quality information. Josh is a senior developer at New Media Campaigns, a full service web design, development, and marketing agency in Carrboro, North Carolina.

Bibliographic information