Adobe Magento DevDocs
  • Cloud
    Cloud basics
    • Cloud Guide
    • Cloud Architecture
    • Project Structure
    • Upgrades and Patches
    • Release Notes
    Cloud development
    • Local development
    • Configure and launch Docker
    • Docker quick reference
    • Configure Application
    • Configure Environments
    Functional Testing
    • Magento application testing
    • Magento Cloud code testing
  • Setup
    • Installation Guide
    • Magento Extensions Guide
    • Software Update Guide
    • Configuration Guide
    • Performance Best Practices
    • Migration Guide
    • Release Information
    • Command-line Tools Reference
  • Development
    Backend
    • Architecture
    • PHP Developer Guide
    • Extension Developer Best Practices
    • Module Reference Guide
    • Coding Standards
    • Contributor Guide
    Frontend
    • Frontend Developer Guide
    • UI Components Guide
    • JavaScript Developer Guide
    • Admin Design Pattern Library
    • Admin Style Guide
    • PWA Documentation Site
    • Page Builder Developer Guide
    API
    • Get Started with Magento Web APIs
    • REST API Reference
    • SOAP API Reference
    • GraphQL Developer Guide
    • Marketplace EQP API Reference
    • Business Intelligence API
  • Testing
    • Magento Testing Guide
    • Functional Acceptance Testing (MFTF)
    • Integration Testing
    • JavaScript Unit Testing
    • PHP Unit Testing
    • Web API Functional Testing
  • Functional Areas
    • Advanced Reporting
    • B2B
    • Checkout
    • Extensions Marketplace
    • Inventory Management
    • Order Management
    • Page Builder
    • Payment Integrations
    • Product Recommendations
    • Security and Compliance
    • Staging
  • Tutorials
    • Rest Tutorials
    • Customize Product Creation Form
    • Customize Checkout
    • Magento Support
    • Video Tutorials
  • Magento 2.3
  • Magento 2.4
Developer
  • Commerce Developer Documentation
  • PWA Studio
  • Order Management
Merchant
  • Commerce User Guide
  • Order Management
  • Business Intelligence

Coding Standards

  • Coding Standards
    • Code demarcation standard
    • PHP coding standard
    • DocBlock standard
    • JavaScript coding standard
    • JavaScript DocBlock standard
    • jQuery widget coding standard
    • LESS coding standard
    • HTML style guide
  • Technical guidelines
  • Technical vision
    • Web Api

Coding Standards

Edit on GitHub
Log an Issue

Like many large projects, Magento has coding standards.

Use Magento’s coding standards when you contribute to Magento’s codebase or create extensions.

  • Code demarcation standard
  • PHP coding standard
  • JavaScript coding standard
  • jQuery widget coding standard
  • DocBlock standard
  • JavaScript DocBlock standard
  • LESS coding standard
  • HTML style guide
  • Become a Contributor
  • Glossary
  • Privacy Policy
  • Terms of Service
  • License/Trademark FAQ
  • Release Notes
  • Third-Party Licenses
© 2020 Magento. All rights reserved.