logo
Coding Standards
Introduction
Initializing search
    drupal/coding_standards
    drupal/coding_standards
      • Coding Standards
      • Introduction
      • PHP coding standards
      • API documentation and comment standards
      • API Documentation Samples
      • Namespaces
      • Naming standards for services and extending Symfony
      • Exceptions
      • PSR-4 and autoload
      • Placeholders and delimiters
      • E_ALL compliance
      • Automated tests
      • Accessibility
      • CSS coding standards
      • CSS formatting guidelines
      • CSScomb settings for Drupal (CSS formatting and sort tool)
      • CSS architecture (for Drupal 9)
      • CSS file organization
      • What to look for when reviewing CSS
      • Coding standards
      • Best practices
      • ESLint settings
      • API documentation and comment standard
      • JQuery coding standard
      • Coding conventions
      • Key words
      • Avoid "SELECT * FROM..."
      • Coding standard
      • Markup
      • Spelling
      • Release Notes
      • Naming convention

    Introduction

    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.

    Made with Material for MkDocs