/CodingStandards

Pixel & Tonic’s official coding standards for Craft and other projects

P&T Coding Standards

These are the coding standands that Pixel & Tonic uses adheres (or at least aspires) to when writing code.

If you are writing plugins for Craft, we recommend you use them when possible, in order to make your code more familiar to third parties, and so that third party code will be more familiar to you.

The standards are comprised of the following documents: