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
Code Dependencies and Composer
Search
Tom J Nowell
April 26, 2014
Technology
0
880
Code Dependencies and Composer
Tom J Nowell
April 26, 2014
Tweet
Share
More Decks by Tom J Nowell
See All by Tom J Nowell
Using Blocks Outside The Editor
tarendai
0
870
Composer_and_WordPress__1_.pdf
tarendai
0
68
REST APIs for Absolute Beginners
tarendai
0
910
VVV 2
tarendai
0
690
WordCamp Europe 2016 - Handling Anxiety
tarendai
1
420
Escape From New York
tarendai
0
660
WP The Right Way
tarendai
0
1k
Code Deodorant 2014
tarendai
1
680
Adv WP CLI
tarendai
0
660
Other Decks in Technology
See All in Technology
Oracle Base Database Service 技術詳細
oracle4engineer
PRO
6
57k
Developer Summit 2025 [14-D-1] Yuki Hattori
yuhattor
19
6.2k
抽象化をするということ - 具体と抽象の往復を身につける / Abstraction and concretization
soudai
19
7.6k
運用しているアプリケーションのDBのリプレイスをやってみた
miura55
1
730
Classmethod AI Talks(CATs) #16 司会進行スライド(2025.02.12) / classmethod-ai-talks-aka-cats_moderator-slides_vol16_2025-02-12
shinyaa31
0
110
Goで作って学ぶWebSocket
ryuichi1208
2
1.3k
現場で役立つAPIデザイン
nagix
33
12k
リアルタイム分析データベースで実現する SQLベースのオブザーバビリティ
mikimatsumoto
0
1.4k
Swiftの “private” を テストする / Testing Swift "private"
yutailang0119
0
130
明日からできる!技術的負債の返済を加速するための実践ガイド~『ホットペッパービューティー』の事例をもとに~
recruitengineers
PRO
3
410
Classmethod AI Talks(CATs) #17 司会進行スライド(2025.02.19) / classmethod-ai-talks-aka-cats_moderator-slides_vol17_2025-02-19
shinyaa31
0
120
『衛星データ利用の方々にとって近いようで触れる機会のなさそうな小話 ~ 衛星搭載ソフトウェアと衛星運用ソフトウェア (実物) を動かしながらわいわいする編 ~』 @日本衛星データコミニティ勉強会
meltingrabbit
0
150
Featured
See All Featured
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
4
330
Statistics for Hackers
jakevdp
797
220k
How to Ace a Technical Interview
jacobian
276
23k
Building Applications with DynamoDB
mza
93
6.2k
Code Reviewing Like a Champion
maltzj
521
39k
Optimising Largest Contentful Paint
csswizardry
34
3.1k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
248
1.3M
The Invisible Side of Design
smashingmag
299
50k
StorybookのUI Testing Handbookを読んだ
zakiyama
28
5.5k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
PRO
12
960
Practical Orchestrator
shlominoach
186
10k
Testing 201, or: Great Expectations
jmmastey
42
7.2k
Transcript
Code Dependencies & Composer Tom J Nowell, WC Sheffield @tarendai
tomjn.com
I’m Tom I work for Code For The People
This talk is about managing code frameworks, shared code, dependencies,
things don’t have to be painful
Theme/Plugin Frameworks are born fully formed
Things have to be wedged into frameworks
We want themes and plugins to be fast and light
Consolidate and Grab Only What You Need
Modularise Things
These are our dependencies
Frameworks include everything from the get go
We need something like ordering off a menu
Enter Composer
Composer describes a package, and what it needs to run
{ “name”: “icit/wp-less”, “require”: { "php": ">=5.2.4", "leafo/lessphp": "0.4.0" }
}
Installing Composer https://getcomposer.org/download/ ( Already installed with vvv )
To install dependencies > composer install
None
To update dependencies > composer update
Dependencies get put in a vendor/ folder An autoloader is
provided so there are no require/includes
Packagist The PHP world has a headstart on us
For packages not on Packagist { "repositories": [ { "type":
"git", "url": "https://github.com/leafo/lessphp.git" } ], ...etc... }
Questions? Tom J Nowell tomjn.com @tarendai