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
280
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
45
HTTP 2 - Geekcamp
edwinlunando
1
140
Python ID Meetup Oktober 2015
edwinlunando
0
85
Python ID Meetup Agustus 2015
edwinlunando
0
300
Python ID Meetup Juni 2015
edwinlunando
0
46
Python ID Meetup April 2015
edwinlunando
0
99
Python 101 Workshop
edwinlunando
0
340
Python ID Meetup February 2015
edwinlunando
0
180
Intro to django-naomi
edwinlunando
0
460
Other Decks in Technology
See All in Technology
AWS SAW を広めたい @四国クラウドお遍路
kazzpapa3
0
220
Oracle Cloud Infrastructure IaaS 新機能アップデート 2024/6 - 2024/8
oracle4engineer
PRO
0
110
PDF Viewer作成の今までとこれから
hunachi
0
270
効果的なオンコール対応と障害対応
ryuichi1208
5
2.6k
手軽に始める? おうちサーバーのすゝめ
nyagasan
0
200
標準ライブラリの奥深アップデートを掘り下げよう!
logica0419
2
450
Javaにおける関数型プログラミンへの取り組み
skrb
7
300
SORACOMで実現するIoTのマルチクラウド対応 - IoTでのクリーンアーキテクチャの実現 -
kenichirokimura
0
340
不動産売買取引におけるAIの可能性とプロダクトでのAI活用
zabio3
0
210
四国クラウドお遍路 2024 in 高知 エンディング
yukataoka
0
180
OCI で始める!! Red Hat OpenShift / Get Started OpenShift on OCI
oracle4engineer
PRO
1
110
忙しい人のためのLangGraph概要まとめ
__ymgc__
1
150
Featured
See All Featured
Fontdeck: Realign not Redesign
paulrobertlloyd
80
5.1k
The Invisible Customer
myddelton
119
13k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
248
20k
Git: the NoSQL Database
bkeepers
PRO
425
64k
The Language of Interfaces
destraynor
153
23k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
502
140k
How GitHub Uses GitHub to Build GitHub
holman
472
290k
Being A Developer After 40
akosma
83
580k
Put a Button on it: Removing Barriers to Going Fast.
kastner
58
3.4k
A better future with KSS
kneath
235
17k
Agile that works and the tools we love
rasmusluckow
327
20k
A Philosophy of Restraint
colly
202
16k
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