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
810
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
800
Composer_and_WordPress__1_.pdf
tarendai
0
64
REST APIs for Absolute Beginners
tarendai
0
830
VVV 2
tarendai
0
630
WordCamp Europe 2016 - Handling Anxiety
tarendai
1
380
Escape From New York
tarendai
0
640
WP The Right Way
tarendai
0
980
Code Deodorant 2014
tarendai
1
650
Adv WP CLI
tarendai
0
630
Other Decks in Technology
See All in Technology
Towards Effortless Transaction Management in Microservices @KubeDay Japan 2024
scalar
1
100
強いチームを夢見て-PMからSREに転身して1年の振り返り / 20240906_bengo4_sre
bengo4com
2
820
Autonomous Database Cloud 技術詳細 / adb-s_technical_detail_jp
oracle4engineer
PRO
15
40k
「家族アルバム みてね」における運用管理・ オブザーバビリティの全貌 / Overview of Operation Management and Observability in FamilyAlbum
isaoshimizu
4
140
サイボウズ 開発本部採用ピッチ / Cybozu Engineer Recruit
cybozuinsideout
PRO
9
41k
すぐに始めるAWSコスト削減。短期でできる改善策と長期的な運用負荷軽減への取り組み方を解説
ncdc
1
550
Segment Anything Model 2
tenten0727
2
480
EitherT_with_Future
aoiroaoino
1
980
2024年版 運用者たちのLLM
nwiizo
3
510
MySQLユーザ会なにやってるの?とおさそいと / たいへんなのw
sakaik
1
140
ロリポップ! for Gamersを支えるインフラ/lolipop for gamers infrastructure
takumakume
0
120
突撃! 隣のAmazon Bedrockユーザー 〜YouはどうしてAWSで?〜
minorun365
PRO
3
300
Featured
See All Featured
We Have a Design System, Now What?
morganepeng
48
7.1k
Web development in the modern age
philhawksworth
204
10k
Learning to Love Humans: Emotional Interface Design
aarron
270
40k
Building a Modern Day E-commerce SEO Strategy
aleyda
35
6.8k
Teambox: Starting and Learning
jrom
131
8.7k
Intergalactic Javascript Robots from Outer Space
tanoku
268
26k
How GitHub (no longer) Works
holman
310
140k
Typedesign – Prime Four
hannesfritz
39
2.3k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
123
18k
How GitHub Uses GitHub to Build GitHub
holman
472
290k
Reflections from 52 weeks, 52 projects
jeffersonlam
346
20k
Making the Leap to Tech Lead
cromwellryan
128
8.8k
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