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
67
devsumi-2024-summer
onigra
4
1.9k
第一種低層住居専用地域
onigra
0
230
jaws-ug-ecspresso-meetup-20230808
onigra
0
1.7k
ginza-ruby-kaigi-01
onigra
4
980
プログラミング初心者でも始められるコミュニティへの参加と貢献
onigra
4
740
Techblog Deep Dive Meetup #1
onigra
0
1.9k
とある業務オペレーション自動化の話
onigra
0
960
about tsudura
onigra
0
250
Other Decks in Programming
See All in Programming
return文におけるstd::moveについて
onihusube
1
1.1k
たのしいparse.y
ydah
3
120
テスト自動化失敗から再挑戦しチームにオーナーシップを委譲した話/STAC2024 macho
ma_cho29
1
1.3k
The Efficiency Paradox and How to Save Yourself and the World
hollycummins
1
440
[JAWS-UG横浜 #76] イケてるアップデートを宇宙いち早く紹介するよ!
maroon1st
0
460
CSC305 Lecture 26
javiergs
PRO
0
140
Fibonacci Function Gallery - Part 1
philipschwarz
PRO
0
220
バグを見つけた?それAppleに直してもらおう!
uetyo
0
180
PSR-15 はあなたのための ものではない? - phpcon2024
myamagishi
0
130
DevFest Tokyo 2025 - Flutter のアプリアーキテクチャ現在地点
wasabeef
5
910
Effective Signals in Angular 19+: Rules and Helpers
manfredsteyer
PRO
0
100
Haze - Real time background blurring
chrisbanes
1
510
Featured
See All Featured
A Modern Web Designer's Workflow
chriscoyier
693
190k
It's Worth the Effort
3n
183
28k
Building an army of robots
kneath
302
44k
Mobile First: as difficult as doing things right
swwweet
222
9k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
PRO
10
810
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
2
290
Large-scale JavaScript Application Architecture
addyosmani
510
110k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
247
1.3M
Rebuilding a faster, lazier Slack
samanthasiow
79
8.7k
GraphQLの誤解/rethinking-graphql
sonatard
67
10k
VelocityConf: Rendering Performance Case Studies
addyosmani
326
24k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
26
1.5k
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ϓϩδΣΫτͰδϣϒΩϡʔԿͬͯ·͢ ͔ʁ