© Matt Zandstra 2016

MATT ZANDSTRA, PHP Objects, Patterns, and Practice, 10.1007/978-1-4842-1996-6_15

15. PHP Standards

Matt Zandstra

(1)Liverpool, Merseyside, UK

Unless you are a lawyer or a health inspector, the topic of standards probably does not make your heart race. However, what standards help us achieve is worth getting excited about. Standards promote interoperability, and that gives us access to a vast array of compatible tools and framework components.

This chapter will cover several important aspects of standards:

  • Why standards: What are standards and why they matter

  • PHP Standards Recommendations: Their origins and purpose

  • PSR-1: The Basic Coding Standard

  • PSR-2: The Coding Style Guide

  • PSR-4: Autoloading

Why Standards?

Design patterns interoperate. ...

Get PHP Objects, Patterns, and Practice, Fifth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.