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
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Edwin Lunando
September 28, 2014
Technology
320
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
62
Python ID Meetup April 2015
edwinlunando
0
120
Python 101 Workshop
edwinlunando
0
440
Python ID Meetup February 2015
edwinlunando
0
260
Intro to django-naomi
edwinlunando
0
590
Other Decks in Technology
See All in Technology
[RSJ26] AnoleVLA: Lightweight Vision-Language-Action Model with Deep State Space Models for Mobile Manipulation
keio_smilab
PRO
0
100
All About Sansan – for New Global Engineers
sansan33
PRO
1
1.5k
Kiro Crewしか勝たん!?
miu_crescent
PRO
0
130
Beyond the Hype: Practical AI for Your Oracle Database with MCP
thatjeffsmith
1
150
いま好きなこと 最初はそんなに好きじゃなかった #tamagawadev
nishiuma
1
180
Self Healing Rollouts: Automating Production Fixes with Agentic AI
kdubois
0
120
Bill One 開発エンジニア 紹介資料
sansan33
PRO
7
20k
Does an AI Watermark Survive Translation?
machinetranslation
0
520
いかに伝えるか 〜新卒エンジニアの教育のための、ライトノベル活用の一例
ikedon
1
150
みてねにおけるAI-DLC導入活動とAIドリブン開発の現在地/JAWS-UG AI-DLC #2
isaoshimizu
2
320
[RSJ26] NarrativeFlow: Flow-Based Vision-Language-Action Model Using Robot Velocity Fields
keio_smilab
PRO
0
120
魔法少女がClaude Codeを監視する / ccportal-deck
noriyukitakei
3
110
Featured
See All Featured
A designer walks into a library…
pauljervisheath
211
24k
It's Worth the Effort
3n
188
29k
A Modern Web Designer's Workflow
chriscoyier
698
190k
So, you think you're a good person
axbom
PRO
2
2.1k
Digital Projects Gone Horribly Wrong (And the UX Pros Who Still Save the Day) - Dean Schuster
uxyall
1
2.6k
Stewardship and Sustainability of Urban and Community Forests
pwiseman
0
500
Lessons Learnt from Crawling 1000+ Websites
charlesmeaden
PRO
1
1.6k
4 Signs Your Business is Dying
shpigford
187
23k
The agentic SEO stack - context over prompts
schlessera
0
880
Large-scale JavaScript Application Architecture
addyosmani
515
110k
My Coaching Mixtape
mlcsv
0
300
WCS-LA-2024
lcolladotor
0
820
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