Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Suitmedia PHP Coding Style
Search
Edwin Lunando
September 28, 2014
Technology
0
300
Suitmedia PHP Coding Style
The PHP coding guideline for Suitmedia developer
Edwin Lunando
September 28, 2014
Tweet
Share
More Decks by Edwin Lunando
See All by Edwin Lunando
Python di Industri
edwinlunando
0
55
HTTP 2 - Geekcamp
edwinlunando
1
150
Python ID Meetup Oktober 2015
edwinlunando
0
100
Python ID Meetup Agustus 2015
edwinlunando
0
370
Python ID Meetup Juni 2015
edwinlunando
0
54
Python ID Meetup April 2015
edwinlunando
0
110
Python 101 Workshop
edwinlunando
0
420
Python ID Meetup February 2015
edwinlunando
0
250
Intro to django-naomi
edwinlunando
0
570
Other Decks in Technology
See All in Technology
20260311 ビジネスSWG活動報告(デジタルアイデンティティ人材育成推進WG Ph2 活動報告会)
oidfj
0
350
開発チームとQAエンジニアの新しい協業モデル -年末調整開発チームで実践する【QAリード施策】-
kaomi_wombat
0
130
Windows ファイル共有(SMB)を再確認する
murachiakira
PRO
0
200
システム標準化PMOから ガバメントクラウドCoEへ
techniczna
1
150
スケールアップ企業でQA組織が機能し続けるための組織設計と仕組み〜ボトムアップとトップダウンを両輪としたアプローチ〜
tarappo
2
240
俺の/私の最強アーキテクチャ決定戦開催 ― チームで新しいアーキテクチャに適合していくために / 20260322 Naoki Takahashi
shift_evolve
PRO
0
300
SLI/SLO 導入で 避けるべきこと3選
yagikota
0
130
AWSの資格って役に立つの?
tk3fftk
2
370
「お金で解決」が全てではない!大規模WebアプリのCI高速化 #phperkaigi
stefafafan
4
1.8k
TypeScript 7.0の現在地と備え方
uhyo
7
1.9k
PMとしての意思決定とAI活用状況について
lycorptech_jp
PRO
0
140
A Casual Introduction to RISC-V
omasanori
0
470
Featured
See All Featured
Lessons Learnt from Crawling 1000+ Websites
charlesmeaden
PRO
1
1.1k
HDC tutorial
michielstock
1
560
Hiding What from Whom? A Critical Review of the History of Programming languages for Music
tomoyanonymous
2
560
Making the Leap to Tech Lead
cromwellryan
135
9.8k
Getting science done with accelerated Python computing platforms
jacobtomlinson
2
150
Organizational Design Perspectives: An Ontology of Organizational Design Elements
kimpetersen
PRO
1
640
Deep Space Network (abreviated)
tonyrice
0
93
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
162
16k
The Organizational Zoo: Understanding Human Behavior Agility Through Metaphoric Constructive Conversations (based on the works of Arthur Shelley, Ph.D)
kimpetersen
PRO
0
270
Designing for Performance
lara
611
70k
Google's AI Overviews - The New Search
badams
0
940
DBのスキルで生き残る技術 - AI時代におけるテーブル設計の勘所
soudai
PRO
64
52k
Transcript
PHP Coding Style
[email protected]
[email protected]
Why? Everyone can easily read your codes just like reading
their own codes
Spaces is Better than Tabs 4 spaces per indent All
Editors have the same indent width Prettier code on Git
No ?> In The End of File Only for file
with all PHP codes Avoid additional new lines in generated document
One Statement Per Line Easier to see changes with side-by-side
diff
Multiple Line Argument Lists One argument per line Use when
have long argument lists
Position of Opening and Closing Braces Class and Function declaration
in new line Control Structures in the same line
Explicit Declaration of Visibility public or protected or private or
abstract or static or final
Camel Case for Method wowSuchMethod, muchCamel, soCase
Friendly Variable Names With Underscore Avoid $j, $i, $asd, $abc,
$temp Use $join_table, $counter_product, $temp_collection
Thank You source: www.php-fig.org