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
300
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
55
HTTP 2 - Geekcamp
edwinlunando
1
150
Python ID Meetup Oktober 2015
edwinlunando
0
100
Python ID Meetup Agustus 2015
edwinlunando
0
370
Python ID Meetup Juni 2015
edwinlunando
0
54
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
570
Other Decks in Technology
See All in Technology
頼れる Agentic AI を支える Datadog のオブザーバビリティ / Powering Reliable Agentic AI with Datadog Observability
aoto
PRO
0
230
Copilot 宇宙へ 〜生成AIで「専門データの壁」を壊す方法〜
nakasho
0
120
AI時代の「本当の」ハイブリッドクラウド — エージェントが実現した、あの頃の夢
ebibibi
0
150
進化するBits AI SREと私と組織
nulabinc
PRO
1
260
会社紹介資料 / Sansan Company Profile
sansan33
PRO
16
410k
The_Evolution_of_Bits_AI_SRE.pdf
nulabinc
PRO
0
250
VLAモデル構築のための AIロボット向け模倣学習キット
kmatsuiugo
0
290
AlloyDB 奮闘記
hatappi
0
170
楽しく学ぼう!ネットワーク入門
shotashiratori
1
490
Cortex Code CLI と一緒に進めるAgentic Data Engineering
__allllllllez__
0
500
身体を持ったパーソナルAIエージェントの 可能性を探る開発
yokomachi
1
130
フロントエンド刷新 4年間の軌跡
yotahada3
0
520
Featured
See All Featured
How GitHub (no longer) Works
holman
316
150k
Why Your Marketing Sucks and What You Can Do About It - Sophie Logan
marketingsoph
0
110
The Power of CSS Pseudo Elements
geoffreycrofte
82
6.2k
Building a Scalable Design System with Sketch
lauravandoore
463
34k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
4.2k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
52
5.9k
Intergalactic Javascript Robots from Outer Space
tanoku
273
27k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
Navigating Weather and Climate Data
rabernat
0
140
Tips & Tricks on How to Get Your First Job In Tech
honzajavorek
0
460
Six Lessons from altMBA
skipperchong
29
4.2k
Mind Mapping
helmedeiros
PRO
1
130
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