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
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
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
92
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
IaaS/SaaS管理における SREの実践 - SRE Kaigi 2026
bbqallstars
4
2.2k
Introduction to Bill One Development Engineer
sansan33
PRO
0
360
What happened to RubyGems and what can we learn?
mikemcquaid
0
290
usermode linux without MMU - fosdem2026 kernel devroom
thehajime
0
230
茨城の思い出を振り返る ~CDKのセキュリティを添えて~ / 20260201 Mitsutoshi Matsuo
shift_evolve
PRO
1
250
We Built for Predictability; The Workloads Didn’t Care
stahnma
0
140
AWS Network Firewall Proxyを触ってみた
nagisa53
1
220
こんなところでも(地味に)活躍するImage Modeさんを知ってるかい?- Image Mode for OpenShift -
tsukaman
0
130
生成AI時代にこそ求められるSRE / SRE for Gen AI era
ymotongpoo
5
3.1k
SREが向き合う大規模リアーキテクチャ 〜信頼性とアジリティの両立〜
zepprix
0
440
名刺メーカーDevグループ 紹介資料
sansan33
PRO
0
1k
StrandsとNeptuneを使ってナレッジグラフを構築する
yakumo
1
110
Featured
See All Featured
Stop Working from a Prison Cell
hatefulcrawdad
273
21k
How to audit for AI Accessibility on your Front & Back End
davetheseo
0
180
Building Applications with DynamoDB
mza
96
6.9k
Between Models and Reality
mayunak
1
190
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
122
21k
Scaling GitHub
holman
464
140k
Paper Plane
katiecoart
PRO
0
46k
We Are The Robots
honzajavorek
0
160
Navigating Algorithm Shifts & AI Overviews - #SMXNext
aleyda
0
1.1k
Building an army of robots
kneath
306
46k
Java REST API Framework Comparison - PWX 2021
mraible
34
9.1k
Future Trends and Review - Lecture 12 - Web Technologies (1019888BNR)
signer
PRO
0
3.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