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
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
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
400
Python ID Meetup Juni 2015
edwinlunando
0
61
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
Invisible to AI? Making TYPO3 Sites Quotable by AI Search Systems
wolfgangwagner
0
160
Webアクセシビリティ入門 2026
recruitengineers
PRO
2
450
モダンフロントエンド 開発研修
recruitengineers
PRO
3
560
Bill One 開発エンジニア 紹介資料
sansan33
PRO
7
19k
AIは実装を速くする。では、私たちは何を今作るべきか?-立場を越えてリリースに向き合ったチーム開発の実践 / 20260801 Hiromi Nakaya and Naoki Takahashi
shift_evolve
PRO
3
440
【Google Cloud Next Tokyo'26】Gemini Enterprise と Oracle AI Database で実現する、業務データ活用を実現する AI エージェント実装
shisyu_gaku
0
230
老害フォレンジッカーはAI羊の夢を見るか?
tadmaddad
0
300
【CEDEC2026】ゲームシナリオライターを支援するAIツール開発の実践 ― 設計とプロンプトの工夫 ―
cygames
PRO
1
770
『三匹の子ぶた』から学ぶネットワークセキュリティの昔と今 / Network Security: Then and Now Through the Lens of The Three Little Pigs
nttcom
1
1.8k
ブラウザ研修 2026
recruitengineers
PRO
4
780
Pavlokで始める電撃駆動開発
sgrsn
0
180
クラウドセキュリティ入門 ~安全なクラウド利用のための基礎知識~
lhazy
11
8.3k
Featured
See All Featured
B2B Lead Gen: Tactics, Traps & Triumph
marketingsoph
0
200
Introduction to Domain-Driven Design and Collaborative software design
baasie
1
930
Discover your Explorer Soul
emna__ayadi
2
1.2k
The AI Search Optimization Roadmap by Aleyda Solis
aleyda
1
6k
For a Future-Friendly Web
brad_frost
183
10k
SERP Conf. Vienna - Web Accessibility: Optimizing for Inclusivity and SEO
sarafernandez
2
1.5k
The B2B funnel & how to create a winning content strategy
katarinadahlin
PRO
1
460
The #1 spot is gone: here's how to win anyway
tamaranovitovic
3
1.1k
Applied NLP in the Age of Generative AI
inesmontani
PRO
4
2.4k
Tell your own story through comics
letsgokoyo
1
1k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
34
2.8k
Ten Tips & Tricks for a 🌱 transition
stuffmc
0
160
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