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
49
HTTP 2 - Geekcamp
edwinlunando
1
150
Python ID Meetup Oktober 2015
edwinlunando
0
91
Python ID Meetup Agustus 2015
edwinlunando
0
340
Python ID Meetup Juni 2015
edwinlunando
0
51
Python ID Meetup April 2015
edwinlunando
0
110
Python 101 Workshop
edwinlunando
0
380
Python ID Meetup February 2015
edwinlunando
0
210
Intro to django-naomi
edwinlunando
0
510
Other Decks in Technology
See All in Technology
Spring Bootで実装とインフラをこれでもかと分離するための試み
shintanimoto
7
870
CodePipelineのアクション統合から学ぶAWS CDKの抽象化技術 / codepipeline-actions-cdk-abstraction
gotok365
5
280
C++26アップデート 2025-03
faithandbrave
0
1k
彩の国で始めよう。おっさんエンジニアから共有したい、当たり前のことを当たり前にする技術
otsuki
0
150
コスト最適重視でAurora PostgreSQLのログ分析基盤を作ってみた #jawsug_tokyo
non97
1
550
Porting PicoRuby to Another Microcontroller: ESP32
yuuu
4
450
React ABC Questions
hirotomoyamada
0
520
Amazon CloudWatch を使って NW 監視を行うには
o11yfes2023
0
170
SDカードフォレンジック
su3158
1
630
QA/SDETの現在と、これからの挑戦
imtnd
0
140
Road to Go Gem #rubykaigi
sue445
0
900
Writing Ruby Scripts with TypeProf
mame
0
280
Featured
See All Featured
How to Ace a Technical Interview
jacobian
276
23k
KATA
mclloyd
29
14k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
233
17k
The Straight Up "How To Draw Better" Workshop
denniskardys
232
140k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
34
2.2k
Rebuilding a faster, lazier Slack
samanthasiow
80
8.9k
How To Stay Up To Date on Web Technology
chriscoyier
790
250k
The Cost Of JavaScript in 2023
addyosmani
49
7.7k
Gamification - CAS2011
davidbonilla
81
5.2k
Building a Modern Day E-commerce SEO Strategy
aleyda
40
7.2k
How STYLIGHT went responsive
nonsquared
99
5.5k
Measuring & Analyzing Core Web Vitals
bluesmoon
7
390
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