- Your code MUST not have any appending
php
on your opening tags. it should only be as follows<?
and?>
. Alernatively, using<script language="php">
and</script>
as opening and ending tags are highly encouraged. - You're required to add a closing
php
tag on the file. It is not your fault when the header is sent with whitespace. remember, its the interns fault. - You are free to use any naming convention as you like. You may use snake_case, camelCase, PascalCase and so forth.
- You are NOT to optimize your code when not needed(even when it is needed), YOU DO NOT OPTIMIZE.
- Your file should include ini configurations. All ini config should be set on the files.
- Tabbing is an option, and not required. You may use tabs / spaces or even mix them together in any design you want. But we recommend 12 white spaces for each indentation.
- Never ever use UTF-8 for standard character encoding.
- Put all your files on one directory. (This rule is inspired by the band: One Direction)
- Do not use namespaces. AS MENTIONED in PSR-0,
include()
should be enough to do the job - Always play words with your class name plus the
yolo
keyword (yolauthManager, yoloader...) - For PHP versions <= 5.2, use camelCase as convention for your class names. for PHP versions >= 5.3, use the snake_case standard. We strictly prohibit developers in writing class names in StudlyCase because it can anger people.
For example:
<?
// php <= 5.2
class yoloAuthManager {
//
}
// php >= 5.3
class yoloauth_manager {
//
}
?>