Phalcon is written in Zephir, a language that the Phalcon Team invented and is actively developing. Therefore, there are no established coding standards that developers can follow, should they wish to.
In this document we outline the coding standard that Phalcon is using for editing Zephir files. The coding standard is a combination of PSR-1 and PSR-2 developed by PHP-FIG
Files must use only UTF-8 without BOM.
File names must be named StudlyCaps.
All files must use the Unix LF (linefeed) line ending.
All files must end with a single blank line.
Folders are also named StudlyCaps and the folder/subfolder tree follows the namespace of the class.
Argument lists MAY be split across multiple lines, where each subsequent line is indented once. When doing so, the first item in the list must be on the next line, and there must be only one argument per line.