Coding standards PSR-1 & PSR-2

  • View
    637

  • Download
    8

Embed Size (px)

Text of Coding standards PSR-1 & PSR-2

  • 1. Coding Standards by Aram Baghdasaryan Coding Standards PSR-1 & PSR-2

2. Coding Standards by Aram Baghdasaryan PHP Standards Recommendation What is PSR? 3. Coding Standards by Aram Baghdasaryan PHP Standards Recommendation PSR-0 - Autoloader Standard What is PSR? 4. Coding Standards by Aram Baghdasaryan PHP Standards Recommendation PSR-0 - Autoloader Standard PSR-1 - Basic Coding Standard What is PSR? 5. Coding Standards by Aram Baghdasaryan PHP Standards Recommendation PSR-0 - Autoloader Standard PSR-1 - Basic Coding Standard PSR-2 - Coding Style Guide What is PSR? 6. Coding Standards by Aram Baghdasaryan PHP Standards Recommendation PSR-0 - Autoloader Standard PSR-1 - Basic Coding Standard PSR-2 - Coding Style Guide PSR-3 - Logger Interface What is PSR? 7. Coding Standards by Aram Baghdasaryan PHP Standards Recommendation PSR-0 - Autoloader Standard PSR-1 - Basic Coding Standard PSR-2 - Coding Style Guide PSR-3 - Logger Interface PSR-4 - Autoloader Standard What is PSR? 8. Coding Standards by Aram Baghdasaryan Single style guide for PHP code that results in uniformly formatted shared code What it gives to us? 9. Coding Standards by Aram Baghdasaryan Files MUST use only