Kanboard
1.2.21
Table of Contents
User’s Guide
Administrator’s Guide
Developer’s Guide
Contributor Guidelines
Translations
Building Assets (Javascript and CSS files)
Coding Standards
PHP code
JavaScript code
CSS code
Automated Tests
Webhooks
Using Vagrant
Frequently Asked Questions
Plugin Development
API Reference
Kanboard
Docs
»
Developer’s Guide
»
Coding Standards
Edit on GitHub
Coding Standards
¶
PHP code
¶
Indentation: 4 spaces
Line return: Unix =>
\n
Encoding: UTF-8
Use only the opening tags
<?php
or
<?=
for templates, but
never
use
<?
Always write PHPdoc comments for methods and class properties
Coding style:
PSR-1
and
PSR-2
JavaScript code
¶
Indentation: 4 spaces
Line return: Unix =>
\n
CSS code
¶
Indentation: 4 spaces
Line return: Unix =>
\n
Read the Docs
v: 1.2.21
Versions
latest
v1.2.21
1.2.21
1.2.20
1.2.19
1.2.18
1.2.17
1.2.16
1.2.15
Downloads
On Read the Docs
Project Home
Builds
Free document hosting provided by
Read the Docs
.