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
84
Python ID Meetup Agustus 2015
edwinlunando
0
280
Python ID Meetup Juni 2015
edwinlunando
0
46
Python ID Meetup April 2015
edwinlunando
0
99
Python 101 Workshop
edwinlunando
0
330
Python ID Meetup February 2015
edwinlunando
0
170
Intro to django-naomi
edwinlunando
0
450
Other Decks in Technology
See All in Technology
ACRiルーム最新情報とAMD GPUサーバーのご紹介
anjn
0
150
What if...? 처음부터 다시 LLM 어플리케이션을 개발한다면
huffon
0
1k
AOAI Dev Day - Opening Session
yoshidashingo
2
440
年間一億円削減した時系列データベースのアーキテクチャ改善~不確実性の高いプロジェクトへの挑戦~
lycorptech_jp
PRO
3
2.9k
セキュリティ研修 Day1【MIXI 24新卒技術研修】
mixi_engineers
PRO
0
160
スレットハンティングについて知っておきたいこと
hacket
0
130
AOAI Dev Day LLMシステム開発 Tips集
hirosatogamo
15
3.7k
20240717_イケコパ代表Copilot_in_Teams会社でこう使ってます
ponponmikankan
2
430
簡単に始めるSnowflakeの機械学習
nayuts
1
190
20240724_cm_odyssey_hibiyatech
hiashisan
0
110
What is DRE? - Road to SRE NEXT@広島
chanyou0311
3
630
[NIKKEI Tech Talk]Bias for Action!! 実践から学ぶための仕組とコミュニティ / Community for Practice and Learning
kanamasa
0
270
Featured
See All Featured
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
36
9.1k
Building a Scalable Design System with Sketch
lauravandoore
458
32k
Imperfection Machines: The Place of Print at Facebook
scottboms
262
13k
Bootstrapping a Software Product
garrettdimon
PRO
304
110k
Gamification - CAS2011
davidbonilla
78
4.9k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
16
1.6k
Building Effective Engineering Teams - LeadDev
addyosmani
47
2.2k
Build your cross-platform service in a week with App Engine
jlugia
227
17k
4 Signs Your Business is Dying
shpigford
178
21k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
502
140k
Web Components: a chance to create the future
zenorocha
307
41k
Rails Girls Zürich Keynote
gr2m
93
13k
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