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
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
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
CDK対応したAWS DevOps Agentを試そう_20260201
masakiokuda
1
230
AWS Network Firewall Proxyを触ってみた
nagisa53
0
200
SREが向き合う大規模リアーキテクチャ 〜信頼性とアジリティの両立〜
zepprix
0
430
All About Sansan – for New Global Engineers
sansan33
PRO
1
1.3k
Tebiki Engineering Team Deck
tebiki
0
24k
コスト削減から「セキュリティと利便性」を担うプラットフォームへ
sansantech
PRO
3
1.4k
10Xにおける品質保証活動の全体像と改善 #no_more_wait_for_test
nihonbuson
PRO
2
230
15 years with Rails and DDD (AI Edition)
andrzejkrzywda
0
180
MCPでつなぐElasticsearchとLLM - 深夜の障害対応を楽にしたい / Bridging Elasticsearch and LLMs with MCP
sashimimochi
0
150
GSIが複数キー対応したことで、俺達はいったい何が嬉しいのか?
smt7174
3
150
外部キー制約の知っておいて欲しいこと - RDBMSを正しく使うために必要なこと / FOREIGN KEY Night
soudai
PRO
12
5.1k
Bill One 開発エンジニア 紹介資料
sansan33
PRO
4
17k
Featured
See All Featured
Why Mistakes Are the Best Teachers: Turning Failure into a Pathway for Growth
auna
0
51
GitHub's CSS Performance
jonrohan
1032
470k
Ecommerce SEO: The Keys for Success Now & Beyond - #SERPConf2024
aleyda
1
1.8k
Self-Hosted WebAssembly Runtime for Runtime-Neutral Checkpoint/Restore in Edge–Cloud Continuum
chikuwait
0
320
More Than Pixels: Becoming A User Experience Designer
marktimemedia
3
320
How Software Deployment tools have changed in the past 20 years
geshan
0
32k
svc-hook: hooking system calls on ARM64 by binary rewriting
retrage
1
99
Design in an AI World
tapps
0
140
Rails Girls Zürich Keynote
gr2m
96
14k
What’s in a name? Adding method to the madness
productmarketing
PRO
24
3.9k
Heart Work Chapter 1 - Part 1
lfama
PRO
5
35k
Navigating Algorithm Shifts & AI Overviews - #SMXNext
aleyda
0
1.1k
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