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
1.3k
PHP-CS-FixerとかAtomとか
PHPBLTT#6
onigra
February 22, 2017
Tweet
Share
More Decks by onigra
See All by onigra
THE GOAL
onigra
3
60
devsumi-2024-summer
onigra
4
1.7k
第一種低層住居専用地域
onigra
0
230
jaws-ug-ecspresso-meetup-20230808
onigra
0
1.7k
ginza-ruby-kaigi-01
onigra
4
970
プログラミング初心者でも始められるコミュニティへの参加と貢献
onigra
4
730
Techblog Deep Dive Meetup #1
onigra
0
1.8k
とある業務オペレーション自動化の話
onigra
0
950
about tsudura
onigra
0
250
Other Decks in Programming
See All in Programming
as(型アサーション)を書く前にできること
marokanatani
9
2.6k
3 Effective Rules for Using Signals in Angular
manfredsteyer
PRO
0
110
Hotwire or React? ~アフタートーク・本編に含めなかった話~ / Hotwire or React? after talk
harunatsujita
1
120
シェーダーで魅せるMapLibreの動的ラスタータイル
satoshi7190
1
480
A Journey of Contribution and Collaboration in Open Source
ivargrimstad
0
870
C++でシェーダを書く
fadis
6
4.1k
AWS IaCの注目アップデート 2024年10月版
konokenj
3
3.3k
Why Jakarta EE Matters to Spring - and Vice Versa
ivargrimstad
0
1k
CSC509 Lecture 09
javiergs
PRO
0
140
3 Effective Rules for Using Signals in Angular
manfredsteyer
PRO
1
100
Jakarta EE meets AI
ivargrimstad
0
120
카카오페이는 어떻게 수천만 결제를 처리할까? 우아한 결제 분산락 노하우
kakao
PRO
0
110
Featured
See All Featured
RailsConf 2023
tenderlove
29
900
Practical Orchestrator
shlominoach
186
10k
Docker and Python
trallard
40
3.1k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
159
15k
Mobile First: as difficult as doing things right
swwweet
222
8.9k
Why You Should Never Use an ORM
jnunemaker
PRO
54
9.1k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
27
840
Optimising Largest Contentful Paint
csswizardry
33
2.9k
Side Projects
sachag
452
42k
Why Our Code Smells
bkeepers
PRO
334
57k
A Modern Web Designer's Workflow
chriscoyier
693
190k
Code Review Best Practice
trishagee
64
17k
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ϓϩδΣΫτͰδϣϒΩϡʔԿͬͯ·͢ ͔ʁ