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
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Edwin Lunando
September 28, 2014
Technology
310
0
Share
Suitmedia PHP Coding Style
The PHP coding guideline for Suitmedia developer
Edwin Lunando
September 28, 2014
More Decks by Edwin Lunando
See All by Edwin Lunando
Python di Industri
edwinlunando
0
65
HTTP 2 - Geekcamp
edwinlunando
1
160
Python ID Meetup Oktober 2015
edwinlunando
0
110
Python ID Meetup Agustus 2015
edwinlunando
0
380
Python ID Meetup Juni 2015
edwinlunando
0
59
Python ID Meetup April 2015
edwinlunando
0
110
Python 101 Workshop
edwinlunando
0
430
Python ID Meetup February 2015
edwinlunando
0
250
Intro to django-naomi
edwinlunando
0
580
Other Decks in Technology
See All in Technology
The Making of AI Chips
pfn
PRO
0
710
コーディングAIが導くリスクベースド探索的テストの実践
lycorptech_jp
PRO
1
400
AI時代に改めて考える、ドメイン駆動設計 - モデリングが「AIへの共通言語」になる
littlehands
7
2k
Sansan Engineering Unit 紹介資料
sansan33
PRO
1
4.5k
ルール・ロール・ツールを創る / Creating Rules, Roles and Tools
ks91
PRO
0
160
TypeScriptとAngular Signal で実現する保守性の高いアプリケーション設計 - 3層アーキテクチャによる責務分離の実践(たつかわ) https://2026.tskaigi.org/talks/10
nealle
1
320
JaSSTに関わることで変わった人生観 #jasstnano
makky_tyuyan
0
180
AWSアップデートから考える継続的な運用改善
toru_kubota
2
360
Claude Code で使える DuckDB Skills を試してみた / DuckDB Skills and Claude Code
masahirokawahara
2
2.2k
Agentic Design Patterns
glaforge
0
100
JavaScript実装の自作プログラミング言語をTypeScript実装に移行した話
keisukeikeda
1
140
ANDPAD Ruby sponsor session in RubyKaigi 2026
andpad
0
140
Featured
See All Featured
Everyday Curiosity
cassininazir
0
210
Mobile First: as difficult as doing things right
swwweet
225
10k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
38
2.9k
Become a Pro
speakerdeck
PRO
31
5.9k
Effective software design: The role of men in debugging patriarchy in IT @ Voxxed Days AMS
baasie
0
360
Fireside Chat
paigeccino
42
3.9k
Google's AI Overviews - The New Search
badams
0
1k
技術選定の審美眼(2025年版) / Understanding the Spiral of Technologies 2025 edition
twada
PRO
118
120k
Visualization
eitanlees
151
17k
Marketing to machines
jonoalderson
1
5.3k
Beyond borders and beyond the search box: How to win the global "messy middle" with AI-driven SEO
davidcarrasco
3
140
Neural Spatial Audio Processing for Sound Field Analysis and Control
skoyamalab
0
300
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