© Matt Zandstra 2021
M. ZandstraPHP 8 Objects, Patterns, and Practicehttps://doi.org/10.1007/978-1-4842-6791-2_15

15. PHP Standards

Matt Zandstra1  
(1)
Brighton, 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-12: Extended Coding Style

  • PSR-4: Autoloading

Why Standards?

Design patterns interoperate. ...

Get PHP 8 Objects, Patterns, and Practice: Mastering OO Enhancements, Design Patterns, and Essential Development Tools 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.