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
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
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
830
Techblog Deep Dive Meetup #1
onigra
0
2.1k
とある業務オペレーション自動化の話
onigra
0
1k
about tsudura
onigra
0
320
Other Decks in Programming
See All in Programming
Xdebug と IDE による デバッグ実行の仕組みを見る / Exploring-How-Debugging-Works-with-Xdebug-and-an-IDE
shin1x1
0
290
PHPのバージョンアップ時にも役立ったAST(2026年版)
matsuo_atsushi
0
270
Mastering Event Sourcing: Your Parents Holidayed in Yugoslavia
super_marek
0
130
夢の無限スパゲッティ製造機 -実装篇- #phpstudy
o0h
PRO
0
180
実践ハーネスエンジニアリング #MOSHTech
kajitack
7
5.2k
見せてもらおうか、 OpenSearchの性能とやらを!
shunta27
1
160
CS教育のDX AIによる育成の効率化
niftycorp
PRO
0
170
AWS×クラウドネイティブソフトウェア設計 / AWS x Cloud-Native Software Design
nrslib
16
3.5k
Smarter Angular mit Transformers.js & Prompt API
christianliebel
PRO
1
110
Goの型安全性で実現する複数プロダクトの権限管理
ishikawa_pro
2
1.4k
Coding as Prompting Since 2025
ragingwind
0
610
Symfonyの特性(設計思想)を手軽に活かす特性(trait)
ickx
0
110
Featured
See All Featured
Ethics towards AI in product and experience design
skipperchong
2
240
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
128
55k
エンジニアに許された特別な時間の終わり
watany
106
240k
Principles of Awesome APIs and How to Build Them.
keavy
128
17k
Taking LLMs out of the black box: A practical guide to human-in-the-loop distillation
inesmontani
PRO
3
2.1k
Prompt Engineering for Job Search
mfonobong
0
240
Balancing Empowerment & Direction
lara
5
1k
Git: the NoSQL Database
bkeepers
PRO
432
67k
How STYLIGHT went responsive
nonsquared
100
6k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
666
130k
ラッコキーワード サービス紹介資料
rakko
1
2.8M
How to make the Groovebox
asonas
2
2.1k
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ϓϩδΣΫτͰδϣϒΩϡʔԿͬͯ·͢ ͔ʁ