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
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Edwin Lunando
September 28, 2014
Technology
310
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Suitmedia PHP Coding Style
The PHP coding guideline for Suitmedia developer
Edwin Lunando
September 28, 2014
More Decks by Edwin Lunando
See All by Edwin Lunando
Python di Industri
edwinlunando
0
66
HTTP 2 - Geekcamp
edwinlunando
1
160
Python ID Meetup Oktober 2015
edwinlunando
0
110
Python ID Meetup Agustus 2015
edwinlunando
0
390
Python ID Meetup Juni 2015
edwinlunando
0
60
Python ID Meetup April 2015
edwinlunando
0
120
Python 101 Workshop
edwinlunando
0
430
Python ID Meetup February 2015
edwinlunando
0
260
Intro to django-naomi
edwinlunando
0
590
Other Decks in Technology
See All in Technology
AIが実装を自走する時代の認知負債との戦い
lycorptech_jp
PRO
0
120
AI時代のYAGNI:「爆速で無駄になった機能」からの学び / 20260720 Naoki Takahashi
shift_evolve
PRO
2
300
実践!既存 Project への AI-Driven Development 適用〜 一ヶ月で Project 唯一のフロントエンドエンジニアを作り出せ〜
lycorptech_jp
PRO
0
190
Oracle Exadata Database Service on Cloud@Customer X11M (ExaDB-C@C) サービス概要
oracle4engineer
PRO
2
8.4k
AI Coding Agent時代のcdk-nagガードレール 〜組織ルールを強制CIで守り抜く設計の挑戦〜
mhrtech
3
390
Empower GenAI with Agile - あなたのアジャイルが生成AIのバフになる仕組み
hageyahhoo
1
210
ヘルスケア領域における AI 活用と その安全性担保のための取り組み (Leveraging AI in Healthcare and Our Efforts to Ensure Its Safety) - Google I/O Extended Tokyo 2026, July 11, 2026
zettaittenani
0
420
世界、断片、モデル。そして理解
ardbeg1958
1
130
AI時代の闇と光
tatsuya1970
0
110
CIで使うClaude
iwatatomoya
0
290
Oracle Base Database Service 技術詳細
oracle4engineer
PRO
15
110k
LLM/Agent評価:トップ営業の発言を「正解」にする 〜暗黙的正解による評価を営業資産に変える〜
takkuhiro
1
230
Featured
See All Featured
The SEO Collaboration Effect
kristinabergwall1
1
500
HTML-Aware ERB: The Path to Reactive Rendering @ RubyCon 2026, Rimini, Italy
marcoroth
2
330
Imperfection Machines: The Place of Print at Facebook
scottboms
270
14k
Context Engineering - Making Every Token Count
addyosmani
9
1k
StorybookのUI Testing Handbookを読んだ
zakiyama
31
6.8k
Efficient Content Optimization with Google Search Console & Apps Script
katarinadahlin
PRO
1
720
How to Align SEO within the Product Triangle To Get Buy-In & Support - #RIMC
aleyda
2
1.7k
Leveraging Curiosity to Care for An Aging Population
cassininazir
1
390
We Analyzed 250 Million AI Search Results: Here's What I Found
joshbly
1
1.6k
HDC tutorial
michielstock
2
740
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
23k
Why You Should Never Use an ORM
jnunemaker
PRO
61
9.9k
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