[Obsolete] PHP

Changes to Drupal coding standards are proposed and discussed in issues in the Coding Standards project.

The Drupal coding standards for PHP.

PHP standards are enforced using PHP_CodeSniffer. The rules used are from that project as well as the Drupal coder project and Slevomat.

[Obsolete] PHP coding standards

[Obsolete] The Drupal Coding Standards apply to code within Drupal and its contributed modules.

[Obsolete] API documentation and comment standards

[Obsolete] Standards for API documentation blocks in PHP code

[Obsolete] API Documentation Examples

[Obsolete] This page is intended to be a collection of the complete API documentation examples

[Obsolete] Namespaces

[Obsolete] Standards having to do with namespaces

[Obsolete] Naming standards for services and extending Symfony

[Obsolete] Standards for services and Symfony usage

[Obsolete] PHP Exceptions

[Obsolete] Basic conventions, exception subclasses, try-catch blocks, inheritance

[Obsolete] PSR-4 namespaces and autoloading in Drupal 8

[Obsolete] Summary of how Drupal 8 uses the PSR-4 standard for namespace autoloading

[Obsolete] Temporary placeholders and delimiters

[Obsolete] Standards for what to call delimiters and placeholders in code

[Obsolete] Write E_ALL compliant code

[Obsolete] Adjusting the error reporting level

Guide maintainers

bbrala's picture
quietone's picture