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
PHP-CS-FixerとかAtomとか
Search
onigra
February 22, 2017
Programming
1.4k
1
Share
PHP-CS-FixerとかAtomとか
PHPBLTT#6
onigra
February 22, 2017
More Decks by onigra
See All by onigra
THE GOAL
onigra
3
160
devsumi-2024-summer
onigra
5
2.9k
第一種低層住居専用地域
onigra
0
320
jaws-ug-ecspresso-meetup-20230808
onigra
0
2k
ginza-ruby-kaigi-01
onigra
4
1.1k
プログラミング初心者でも始められるコミュニティへの参加と貢献
onigra
4
840
Techblog Deep Dive Meetup #1
onigra
0
2.1k
とある業務オペレーション自動化の話
onigra
0
1k
about tsudura
onigra
0
330
Other Decks in Programming
See All in Programming
検索設計から 推論設計への重心移動と Recall-First Retrieval
po3rin
5
1.6k
🦞OpenClaw works with AWS
licux
1
350
Road to RubyKaigi: Play Hard(ware)
makicamel
1
560
AI時代のエンジニアリングの原則 / Engineering Principles in the AI Era
haru860
0
1.1k
Back to the roots of date
jinroq
0
780
サプライチェーン攻撃対策「層を重ねて落ちない壁」を10日間で組み上げた話 #TechLeadConf2026
kashewnuts
1
230
Agentic UI in the Frontend: Architectures with Open Standards @JAX 2026 in Mainz
manfredsteyer
PRO
0
110
Cache-moi si tu peux : patterns et pièges du cache en production - Devoxx France 2026 - Conférence
slecache
0
340
JCON - Create Agentic AI Apps, The Easy Way!
kdubois
1
100
Programming with a DJ Controller — not vibe coding
m_seki
3
810
PHPでバイナリをパースして理解するASN.1
muno92
PRO
0
430
GitHubCopilotCLIをはじめよう.pdf
htkym
0
330
Featured
See All Featured
How to Align SEO within the Product Triangle To Get Buy-In & Support - #RIMC
aleyda
2
1.5k
How to Grow Your eCommerce with AI & Automation
katarinadahlin
PRO
1
180
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
133
19k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
2.8k
Building Better People: How to give real-time feedback that sticks.
wjessup
370
20k
ラッコキーワード サービス紹介資料
rakko
1
3.3M
Leveraging Curiosity to Care for An Aging Population
cassininazir
1
230
Effective software design: The role of men in debugging patriarchy in IT @ Voxxed Days AMS
baasie
0
340
The SEO identity crisis: Don't let AI make you average
varn
0
460
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
180
Build your cross-platform service in a week with App Engine
jlugia
234
18k
The Mindset for Success: Future Career Progression
greggifford
PRO
0
330
Transcript
PHP-CS-Fixerͱ͔Atomͱ͔ PHPBLT#6 2017-02-22 @onigra_
onigra Yudai Suzuki / ླ༤େ onigra_
ԿͬͯΔਓ͔ؒʁ • Rubyist • DevOps • Vimmer • ଞͷϓϩδΣΫτͷαϙʔτͱ͔ •
2ϲ݄͙Β͍લʹଞϓϩδΣΫτͷαϙʔτͰॳΊͯ PHPͷڥߏஙͨ͠
ॳɺPHPͷLinuxڥߏஙͷ Λ͠Α͏ͱࢥ͚ͬͯͨͲ
php.iniͱ͔ωΨςΟϒͳ ͕ଟ͘ͳΓͦ͏ͳͷͰ Ί·ͨ͠
͋Δɺ αϙʔτͯ͠ΔϓϩδΣΫτ ʹͯ
ίʔσΟϯάελΠϧͷ ʹͳͬͨ
ᐌ͘ɺผͷϓϩδΣΫτͱ ن͕ҧͬͯࠞཚ͢Δ
ϑΥʔϚολʔೖΕͯ ΤσΟλͷอଘ࣌ʹ ࣮ߦ͢Ε͍͍͡ΌΜ
୳ͨ͠Β PHP-CS-Fixerͬͯͷ͕͋Δ https://github.com/FriendsOfPHP/PHP-CS-Fixer
Atom͔Β͍͍ͨΒ͍͠
୳ͨ͠Β atom-beautifyͬͯͷ͔Β PHP-CS-FixerݺΔ https://atom.io/packages/atom-beautify
ͬͯΈΔ
ಈ͔ͳ͍
https://gist.github.com/Skysplit/26a2a0ed86922f11986dabd5ee7039b5
https://gist.github.com/Skysplit/26a2a0ed86922f11986dabd5ee7039b5
PHP-CS-Fixer͕ 2016-12-01ʹVersion2ʹͳͬͨ • --fixersΦϓγϣϯ--levelͱڞʹ--rulesʹ౷߹͞Εɺ ༻ෆՄʹͳͬͨ • https://github.com/FriendsOfPHP/PHP-CS-Fixer/blob/ master/UPGRADE.md • Issue͋Δ͕ɺPRແ͍
• https://github.com/Glavin001/atom-beautify/issues/ 1465
…
ݴ͍ग़ͬ͠ͳͷͰ ύονૹΔ͔
None
ύονૹͬͨ https://github.com/Glavin001/atom-beautify/pull/1511
͍ͭͰʹɺWindowsҎ֎ͩͱ ΦϓγϣϯͰPHP-CS-Fixerͷ ύεࢦఆ͕ޮ͔ͳ͍ όάͨ͠ https://github.com/Glavin001/atom-beautify/pull/1510
͍ͭͰʹɺWindowsڥͷ CI(AppVeyor)Ͱ ڥߏஙʹࣦഊͯ͠ΔͷΛ ͨ͠ https://github.com/Glavin001/atom-beautify/pull/1516
None
Α͔ͬͨͰ͢Ͷ
None
େมͦ͏ͳͷͰ ͕Μͬͯ΄͍͠
·ͱΊ
VimPhpStormͬͯ͘Ε པΉʂʂʂʂ
PhpStorm • ͡Ί͔ΒίʔυϑΥʔϚολʔ͍ͭͯΔ͠ɺ ઃఆ߲ࡉ͔͍ • ΧελϚΠζ͢ΕPHP-CS-FixerݺΔ • BladeςϯϓϨʔτʹରԠʢຊ͜Ε͕΄ ͔ͬͨ͠ʣ
Ͳ͏ͯ͠AtomͰ PHPॻ͖͍ͨʁ
php-cs-fixerͷํͬͯ͘Ε པΉʂʂʂʂ
php-cs-fixer (Atom Package) • https://atom.io/packages/php-cs-fixer • ͱͬ͘ʹV2ରԠͯ͠Δ • PHP-CS-FixerΛ͏ͨΊ͚ͩͷϥΠϒϥϦͳ ͷͰɺ୯७ʹPHP-CS-FixerΛΤσΟλ͔Β
͏͚ͩͩͬͨΒɺͬͪ͜ͷํ͕ྑ͍ͱࢥ͏
ࠓ͍ͨ͜͠ͱ • LaravelͷσϓϩΠ • Laravelͷ.envͷѻ͍ • PHPϓϩδΣΫτͰδϣϒΩϡʔԿͬͯ·͢ ͔ʁ