Attention
TYPO3 v11 has reached end-of-life as of October 31th 2024 and is no longer being maintained. Use the version switcher on the top left of this page to select documentation for a supported version of TYPO3.
Need more time before upgrading? You can purchase Extended Long Term Support (ELTS) for TYPO3 v11 here: TYPO3 ELTS.
Coding guidelines
This chapter contains description of the formal requirements or standards regarding coding that you should adhere to when you develop TYPO3 extensions or Core parts.
Tip
You can find an .editorconfig file in the TYPO3 Core repository. Some editors and IDEs can use this file and the rules defined within.
Some basic rules are defined in the .editorconfig, such as the charset and the indenting style. By default, indenting with 4 spaces is used, but there are a few exceptions (e.g. for YAML or JSON files).
For the files that are not specifically covered in the subchapters (e.g. Fluid, .json, or .sql), the information in the .editorconfig file should be sufficient.