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
290
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
48
HTTP 2 - Geekcamp
edwinlunando
1
150
Python ID Meetup Oktober 2015
edwinlunando
0
89
Python ID Meetup Agustus 2015
edwinlunando
0
330
Python ID Meetup Juni 2015
edwinlunando
0
50
Python ID Meetup April 2015
edwinlunando
0
100
Python 101 Workshop
edwinlunando
0
370
Python ID Meetup February 2015
edwinlunando
0
200
Intro to django-naomi
edwinlunando
0
500
Other Decks in Technology
See All in Technology
AIエージェント入門
minorun365
PRO
34
20k
クラウド関連のインシデントケースを収集して見えてきたもの
lhazy
10
2k
EMConf JP 2025 懇親会LT / EMConf JP 2025 social gathering
sugamasao
2
210
データベースの負荷を紐解く/untangle-the-database-load
emiki
2
560
OCI Success Journey OCIの何が評価されてる?疑問に答える事例セミナー(2025年2月実施)
oracle4engineer
PRO
2
240
事業を差別化する技術を生み出す技術
pyama86
2
550
アジャイルな開発チームでテスト戦略の話は誰がする? / Who Talks About Test Strategy?
ak1210
1
870
サバイバルモード下でのエンジニアリングマネジメント
konifar
24
7.7k
書籍『入門 OpenTelemetry』 / Intro of OpenTelemetry book
ymotongpoo
4
190
Introduction to OpenSearch Project - Search Engineering Tech Talk 2025 Winter
tkykenmt
2
250
User Story Mapping + Inclusive Team
kawaguti
PRO
3
540
遷移の高速化 ヤフートップの試行錯誤
narirou
6
2k
Featured
See All Featured
Measuring & Analyzing Core Web Vitals
bluesmoon
6
260
How to train your dragon (web standard)
notwaldorf
91
5.9k
Into the Great Unknown - MozCon
thekraken
35
1.7k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
366
25k
Done Done
chrislema
182
16k
How To Stay Up To Date on Web Technology
chriscoyier
790
250k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
4
440
How to Think Like a Performance Engineer
csswizardry
22
1.4k
Why You Should Never Use an ORM
jnunemaker
PRO
55
9.2k
Rails Girls Zürich Keynote
gr2m
94
13k
A better future with KSS
kneath
238
17k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
33
2.8k
Transcript
PHP Coding Style edwin@suitmedia.com wico@suitmedia.com
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