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
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
61
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
57
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
580
Other Decks in Technology
See All in Technology
プラットフォームエンジニアリングの実践 - AWS コンテナサービスで構築する社内プラットフォーム / AWS Containers Platform Meetup #1
literalice
1
230
UIライブラリに依存しすぎないReact Native設計を目指して
grandbig
0
170
ファインディの事業拡大を支える 拡張可能なデータ基盤へのリアーキテクチャ
hiracky16
0
610
バイブコーディングで3倍早く⚪⚪を作ってみた
samakada
0
200
Pure Intonation on Browser: Building a Sequencer with Ruby
nagachika
0
370
Chasing Real-Time Observability for CRuby
whitegreen
0
550
Oracle Cloud Infrastructure:2026年4月度サービス・アップデート
oracle4engineer
PRO
0
220
20年前の「OSS革命」に学ぶ AI時代の生存戦略
samakada
0
510
Oracle Exadata Database Service on Cloud@Customer X11M (ExaDB-C@C) サービス概要
oracle4engineer
PRO
2
7.9k
「誰一人取り残されない」 AIエージェント時代のプロダクト設計思想 Product Management Summit 2026
mizushimac
1
2.4k
Anthropic「Long-running a gents」をGeminiで再現してみた
tkikuchi
0
740
Forget technical debt
ufried
0
130
Featured
See All Featured
How to Get Subject Matter Experts Bought In and Actively Contributing to SEO & PR Initiatives.
livdayseo
0
110
Highjacked: Video Game Concept Design
rkendrick25
PRO
1
350
Believing is Seeing
oripsolob
1
120
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
17k
Mind Mapping
helmedeiros
PRO
1
170
Odyssey Design
rkendrick25
PRO
2
580
End of SEO as We Know It (SMX Advanced Version)
ipullrank
3
4.1k
It's Worth the Effort
3n
188
29k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
199
73k
Pawsitive SEO: Lessons from My Dog (and Many Mistakes) on Thriving as a Consultant in the Age of AI
davidcarrasco
0
130
AI Search: Where Are We & What Can We Do About It?
aleyda
0
7.4k
The browser strikes back
jonoalderson
0
1k
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