Top Banner
The World of PHP PSR Standards by Radu Murzea (Pentalog)
16

The World of PHP PSR Standards

Apr 08, 2017

Download

Software

Radu Murzea
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: The World of PHP PSR Standards

The World of PHP PSR Standards

by Radu Murzea (Pentalog)

Page 2: The World of PHP PSR Standards

PHP standards before 2009…

Page 3: The World of PHP PSR Standards

PHP standards Today

PSR-3Logger Interface

PSR-2Coding Style

PSR-1Coding Style

PSR-0Autoloading

PSR-4Autoloading

PSR-6Caching Interface

PSR-7HTTP Messages

Page 4: The World of PHP PSR Standards

History…

Page 5: The World of PHP PSR Standards

History…

Page 6: The World of PHP PSR Standards

History…

Page 7: The World of PHP PSR Standards

History…

PSR-0Namespaces

Page 8: The World of PHP PSR Standards

History…

PSR-0Autoloading

Page 9: The World of PHP PSR Standards

The StandardsID Name Description

PSR-0 Autoloading Standard Mandatory requirements that must be adhered to for autoloader interoperability

PSR-1 Basic Coding Standard Standard coding elements that are required to ensure a high level of technical interoperability between shared PHP code.

PSR-2 Coding Style Guide Extends and expands on PSR-1.

PSR-3 Logger Interface Common interface for logging libraries.

PSR-4 Autoloading Standard Specification for autoloading classes from file paths.

PSR-6 Caching Interface Create cache-aware libraries that can be integrated into existing frameworks and systems without the need for custom development.

PSR-7 HTTP Message Interface Common interfaces for representing HTTP messages.

Page 10: The World of PHP PSR Standards

How they’re born

Page 11: The World of PHP PSR Standards

How they’re born

PHP-FIG

Page 12: The World of PHP PSR Standards

How they’re born

PHP-FIG

Page 13: The World of PHP PSR Standards

How they’re born

PHP-FIG

Page 14: The World of PHP PSR Standards

How they’re born

PHP-FIG

Page 15: The World of PHP PSR Standards

How they’re born

PHP-FIG

PSR-x

Page 16: The World of PHP PSR Standards