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
960
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
940
Composer_and_WordPress__1_.pdf
tarendai
0
71
REST APIs for Absolute Beginners
tarendai
0
950
VVV 2
tarendai
0
740
WordCamp Europe 2016 - Handling Anxiety
tarendai
1
450
Escape From New York
tarendai
0
690
WP The Right Way
tarendai
0
1k
Code Deodorant 2014
tarendai
1
700
Adv WP CLI
tarendai
0
680
Other Decks in Technology
See All in Technology
公開初日に Gemini CLI を試した話や FFmpeg と組み合わせてみた話など / Gemini CLI 初学者勉強会(#AI道場)
you
PRO
0
1.3k
SRE不在の開発チームが障害対応と 向き合った100日間 / 100 days dealing with issues without SREs
shin1988
2
2.1k
Amplify Gen2から知るAWS CDK Toolkit Libraryの使い方/How to use the AWS CDK Toolkit Library as known from Amplify Gen2
fossamagna
1
350
LIXIL基幹システム刷新に立ち向かう技術的アプローチについて
tsukuha
1
380
60以上のプロダクトを持つ組織における開発者体験向上への取り組み - チームAPIとBackstageで構築する組織の可視化基盤 - / sre next 2025 Efforts to Improve Developer Experience in an Organization with Over 60 Products
vtryo
3
1.9k
伴走から自律へ: 形式知へと導くSREイネーブリングによる プロダクトチームの信頼性オーナーシップ向上 / SRE NEXT 2025
visional_engineering_and_design
3
460
Autify Company Deck
autifyhq
2
44k
ClaudeCodeにキレない技術
gtnao
1
860
AWS 怖い話 WAF編 @fillz_noh #AWSStartup #AWSStartup_Kansai
fillznoh
0
130
Introduction to Sansan, inc / Sansan Global Development Center, Inc.
sansan33
PRO
0
2.7k
「現場で活躍するAIエージェント」を実現するチームと開発プロセス
tkikuchi1002
3
350
SRE with AI:実践から学ぶ、運用課題解決と未来への展望
yoshiiryo1
0
320
Featured
See All Featured
Rails Girls Zürich Keynote
gr2m
95
14k
Learning to Love Humans: Emotional Interface Design
aarron
273
40k
Adopting Sorbet at Scale
ufuk
77
9.5k
The Cost Of JavaScript in 2023
addyosmani
51
8.6k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
181
54k
Side Projects
sachag
455
42k
Faster Mobile Websites
deanohume
308
31k
Navigating Team Friction
lara
187
15k
Music & Morning Musume
bryan
46
6.7k
Large-scale JavaScript Application Architecture
addyosmani
512
110k
Intergalactic Javascript Robots from Outer Space
tanoku
271
27k
Measuring & Analyzing Core Web Vitals
bluesmoon
7
520
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