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
1.1k
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
1.1k
Composer_and_WordPress__1_.pdf
tarendai
0
95
REST APIs for Absolute Beginners
tarendai
0
1k
VVV 2
tarendai
0
810
WordCamp Europe 2016 - Handling Anxiety
tarendai
1
510
Escape From New York
tarendai
0
760
WP The Right Way
tarendai
0
1.1k
Code Deodorant 2014
tarendai
1
760
Adv WP CLI
tarendai
0
740
Other Decks in Technology
See All in Technology
Claude Codeと駆け抜ける 情報収集と実践録
sontixyou
2
1.2k
dbt meetup #19 『dbtを『なんとなく動かす』を卒業します』
tiltmax3
0
130
All About Sansan – for New Global Engineers
sansan33
PRO
1
1.4k
Devinを導入したら予想外の人たちに好評だった
tomuro
0
540
大規模な組織におけるAI Agent活用の促進と課題
lycorptech_jp
PRO
5
6.8k
Bill One 開発エンジニア 紹介資料
sansan33
PRO
5
18k
Master Dataグループ紹介資料
sansan33
PRO
1
4.4k
Webアクセシビリティ技術と実装の実際
tomokusaba
0
150
失敗できる意思決定とソフトウェアとの正しい歩き方_-_変化と向き合う選択肢/ Designing for Reversible Decisions
soudai
PRO
8
1.4k
トラブルの大半は「言ってない」x「言ってない」じゃねーか!!
ichimichi
0
210
技術キャッチアップ効率化を実現する記事推薦システムの構築
yudai00
2
160
20260222ねこIoTLT ねこIoTLTをふりかえる
poropinai1966
0
310
Featured
See All Featured
The State of eCommerce SEO: How to Win in Today's Products SERPs - #SEOweek
aleyda
2
9.7k
Information Architects: The Missing Link in Design Systems
soysaucechin
0
810
From π to Pie charts
rasagy
0
140
The untapped power of vector embeddings
frankvandijk
2
1.6k
The Limits of Empathy - UXLibs8
cassininazir
1
240
Become a Pro
speakerdeck
PRO
31
5.8k
Money Talks: Using Revenue to Get Sh*t Done
nikkihalliwell
0
170
Exploring the relationship between traditional SERPs and Gen AI search
raygrieselhuber
PRO
2
3.7k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
128
55k
Winning Ecommerce Organic Search in an AI Era - #searchnstuff2025
aleyda
1
1.9k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
37
6.3k
Avoiding the “Bad Training, Faster” Trap in the Age of AI
tmiket
0
95
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