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
CakePHPでも使える Composerを活用したモダンな開発手法
Search
Yusuke Ando
September 14, 2013
Programming
3
11k
CakePHPでも使える Composerを活用したモダンな開発手法
PHPカンファレンス2013にて発表
Yusuke Ando
September 14, 2013
Tweet
Share
More Decks by Yusuke Ando
See All by Yusuke Ando
CakePHP3でアプリ開発
yandod
1
340
Shimokita.Unity パーティクルでエフェクト
yandod
0
760
CakePHP3の明るい未来
yandod
1
200
Testing your app with Selenium on Travis CI
yandod
8
3.1k
Testing your app with Selenium on Travis CI
yandod
0
130
Inputで入力を扱う
yandod
0
660
Detonatorで爆発させる勉強会をした報告
yandod
0
2.4k
Mecanimでアニメーション - Shimokita.Unity
yandod
0
720
パリの街をUnityで駆ける
yandod
1
3.4k
Other Decks in Programming
See All in Programming
AI時代におけるSRE、 あるいはエンジニアの生存戦略
pyama86
4
1.1k
ピラミッド、アイスクリームコーン、SMURF: 自動テストの最適バランスを求めて / Pyramid Ice-Cream-Cone and SMURF
twada
PRO
10
1.2k
Amazon Bedrock Agentsを用いてアプリ開発してみた!
har1101
0
320
C++でシェーダを書く
fadis
6
4k
初めてDefinitelyTypedにPRを出した話
syumai
0
240
Jakarta Concurrencyによる並行処理プログラミングの始め方 (JJUG CCC 2024 Fall)
tnagao7
1
280
ペアーズにおけるAmazon Bedrockを⽤いた障害対応⽀援 ⽣成AIツールの導⼊事例 @ 20241115配信AWSウェビナー登壇
fukubaka0825
5
1.5k
Boost Performance and Developer Productivity with Jakarta EE 11
ivargrimstad
0
1.7k
Contemporary Test Cases
maaretp
0
110
Content Security Policy入門 セキュリティ設定と 違反レポートのはじめ方 / Introduction to Content Security Policy Getting Started with Security Configuration and Violation Reporting
uskey512
1
490
Pinia Colada が実現するスマートな非同期処理
naokihaba
4
220
Macとオーディオ再生 2024/11/02
yusukeito
0
350
Featured
See All Featured
Gamification - CAS2011
davidbonilla
80
5k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
169
50k
How GitHub (no longer) Works
holman
310
140k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
356
29k
How to Ace a Technical Interview
jacobian
276
23k
Why Our Code Smells
bkeepers
PRO
334
57k
No one is an island. Learnings from fostering a developers community.
thoeni
19
3k
Unsuck your backbone
ammeep
668
57k
Agile that works and the tools we love
rasmusluckow
327
21k
A Tale of Four Properties
chriscoyier
156
23k
Building a Scalable Design System with Sketch
lauravandoore
459
33k
5 minutes of I Can Smell Your CMS
philhawksworth
202
19k
Transcript
$PNQPTFSΛ׆༻ͨ͠Ϟμϯͳ։ൃख๏ $BLF1)1Ͱ͑Δ
ZBOEP $BOEZ$BOFQIQ ʮ࠙ձϐβൃΞϓϦʯ
1)1ରԠ1BB4 $IFGͰ"84Λࣗಈߏங $PNQPTFSʹͪΖΜରԠ 44)TVEPՄೳ͔ͭαϙʔτ༗
ΞδΣϯμ Կނ$PNQPTFS͕ඞཁ͔ʁ ͍ํ $BLF1)1ͱ$PNQPTFSͷΈ߹Θͤ
None
$PNQPTFS 1)1 ґଘੑཧπʔϧ DPNQPTFSίϚϯυͰඞཁͳϥΠϒϥ ϦΛࣗಈతʹूΊͯ͘ΕΔ 4ZNGPOZͷػೳͩͬͨ ݱࡏσϑΝΫτελϯμʔυ
ैདྷͷख๏ ϥΠϒϥϦ͕ඞཁʹͳΔ MJCͱ͔ʹμϯϩʔυͯ͠ίϐʔ ͕ΜͬͯSFRVJSF@PODF
Ξοϓσʔτ͕͍͠ ίʔυͷྔ͕૿͑Δ ϥΠϒϥϦ͕͍ͣΕฤू͞ΕΔ SFRVJSF@PODFࠈ
None
None
None
͜͏͍͏ͷྑ͘ͳ͍
$PNQPTFSΛ͓͏ʂ
࡞Δͷ 7BHSBOUͰಈ͘ $PNQPTFSͰϥΠϒϥϦΛಋೖ 5XJUUFS͔Βใऔಘ
7BHSBOU 7JSUVBM#PY7BHSBOU IUUQTHJUIVCDPNZBOEPEQIQ OHJOYWBHSBOUTBNQMF HJUDMPOF WBHSBOUVQ
DPNQPTFSKTPO WBHSBOUTTI DEWBHSBOU@EBUBTBOECPY DPNQPTFSKTPOΛهड़͢Δ ࣗಈͰखಈͰͰ͖Δ
DPNQPTFSKTPO { "name": "llmatsuri/sample", "authors": [ { "name": "yando", "email":
"
[email protected]
" } ], "require": { "dg/twitter-php": "*" } }
DPNQPTFSKTPO ΄͍͠ϥΠϒϥϦΛݕࡧͯ͠ࢦఆ͢Δ 8FCͰίϚϯυͰݕࡧͰ͖Δ ࣮1&"3ΠϯετʔϧͰ͖Δ ࠷ޙʹDPNQPTFSJOTUBMMͰ·ͱΊͯ%-
DPNQPTFSJOTUBMM vagrant@precise64:/vagrant_data$ composer install Loading composer repositories with package information
Installing dependencies (including require-dev) - Installing dg/twitter-php (v3.1) Loading from cache Writing lock file Generating autoload files
JOTUBMM͢Δͱ DPNQPTFSMPDL͕ੜ͞ΕΔ WFOEPSҎԼʹϥΠϒϥϦ͕%-͞ΕΔ WFOEPSҎԼʹΦʔτϩʔμ͕ஔ
༻ޙ
BVUPMPBE BVUPMPBEQIQ͚ͩΛSFRVJSF͢Δ ඞཁͳ࣌ʹ֤ΫϥεΛࣗಈͰಡΈࠐΉ ೋͱSFRVJSF@PODFΛॻ͔ͳ͍ ϑϨʔϜϫʔΫ͕ಡΈࠐΉ߹͋Δ
JOEFYQIQ <?php require_once 'vendor/autoload.php'; $twitter = new Twitter(); ͜Ε͚ͩͰ5XJUUFSΫϥεΛࣗಈతʹ WFOEPSEHUXJUUFSQIQTSD͔ΒಡΈࠐΉʂ
Τϥʔʁ 5XJUUFSΫϥείϯγϡʔϚΩʔͱ ίϯγϡʔϚγʔΫϨοτ͕ඞཁΒ͍͠
EFWUXJUUFSDPNBQQT αΠϯΞοϓ ΞϓϦΛ࡞ ੜ͞ΕͨΩʔใΛίϐͬͯ͏
औಘ <?php require_once 'vendor/autoload.php'; $twitter = new Twitter( 'aaaa', 'bbbb',
'cccc', 'dddd' ); $info = $twitter->loadUserInfo('yando'); var_dump($info->status->text);
͓͓ʂ
͋ͱ ϥΠϒϥϦΛDPNQPTFSKTPOՃ DPNQPTFSVQEBUFͰߋ৽ WFOEPSΛίϛοτ͠ͳ͍ σϓϩΠ࣌ʹJOTUBMMͰWFOEPSΛ࠶ੜ
͞Βʹ 143Λक͍ͬͯΕࣗ࡞ΫϥεͰ BVUPMPBEʹରԠͰ͖Δ 1&"3ͳͲDPNQPTFSͰΠϯετʔϧ ࣗ࡞ϥΠϒϥϦQBDLHJTUͰެ։ʂ
ࣗ࡞Ϋϥεͷϩʔυ
None
QIQGSJFOET
QIQGSJFOET HJUIVCDPNZBOEPEQIQGSJFOET QIQGSJFOETͷը૾Λऩू ͷ͖͔͚ͬʹ ʮQIQGSJFOETͷࣸਅࡱΓ·ͤΜ͔ʁʯ SVCZGSJFOETͷύΫϦ
None
ී௨ͷ$BLF MJC$BLFͷԼʹϑϨʔϜϫʔΫ Ξοϓσʔτؤுͬͯೖସ͑ ϦϙδτϦ͕ඒ͘͠ͳ͍
$PNQPTFSԽ
DPNQPTFSKTPO
Δ͜ͱ DPNQPTFSJOTUBMM DBLFCBLF BQQଆΛࣗಈੜʂ
ࢼ͢ʁ 7BHSBOUpMFಉ͓͖ࠝͯ͠·ͨ͠ HJUDMPOF WBHSBOUVQ IUUQ
ৄ͘͠
·ͱΊ $PNQPTFSΛ͏ͱ໘ͳ࡞ۀ͕ݮΔ ΞοϓσʔτΛසൟʹߦ্͍࣭ ରԠ͍ͯ͠Δ1BB4ͰͷεϜʔζͳಈ࡞
࣭ طଘΞϓϦͷ$PNQPTFSҠߦʁ ৽͘͠ಋೖ͢ΔϥΠϒϥϦ͔Βগͮͭ͠Ҡ͠ ͍ͯ͘ͷͰΑ͍ɻ ݅ʹԠͨ͡ϑϥάͳͲͷઃఆʁ υΩϡϝϯτΛࢀরɻ IUUQHFUDPNQPTFSPSHEPD TDIFNBNEQBDLBHFMJOLT
͋Γ͕ͱ͏͍͟͝·ͨ͠