Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Code Dependencies and Composer
Search
Tom J Nowell
April 26, 2014
Technology
1.4k
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Code Dependencies and Composer
Tom J Nowell
April 26, 2014
Transcript
22 slides
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
More Decks by Tom J Nowell
See All by Tom J Nowell
Using Blocks Outside The Editor
tarendai
0
1.2k
Composer_and_WordPress__1_.pdf
tarendai
0
100
REST APIs for Absolute Beginners
tarendai
0
1.1k
VVV 2
tarendai
0
950
WordCamp Europe 2016 - Handling Anxiety
tarendai
1
620
Escape From New York
tarendai
0
850
WP The Right Way
tarendai
0
1.2k
Code Deodorant 2014
tarendai
1
860
Adv WP CLI
tarendai
0
820
Other Decks in Technology
See All in Technology
お風呂場をサーバルームにしよう
yusuke427
0
400
認知負荷の減らし方 ~開発にも日常業務にも活かせるノウハウ~
minorun365
PRO
17
10k
OpenTelemetryで変わった 新時代のCloudWatchメトリクス監視
tsukuboshi
0
510
New Relicのアラート対応をClaude Codeで自動修正するワークフローを作った話
manabuseki
3
680
業務の傍らで進める改善ループエンジニアリング
bengo4com
1
240
ノードが消える前提で設計する!Karpenterで金融システムを止めないためのノウハウ大全
daitak
1
250
パスワードのない鍵で、 データを手元に置く
ginjihayashi
0
400
新規事業開発でのAWS活用成功談&失敗談! 〜新規事業開発を専門に行うRelicならではのAWS活用〜
amixedcolor
1
150
NutanixへのSSHアクセスの今後について
shadowhat
0
180
Amazon EFS のマルウェアスキャンをClamAV で自前実装したら苦労した話
mtmtfactory01
0
120
さようならSSH鍵、こんにちはゼロトラスト ― AIフレンドリーで快適な自宅鯖SSH
atalie2m
14
7.6k
Metadata - Section 4 : MODS (Metadata Object Description Schema )
mohab1
0
140
Featured
See All Featured
Learning to Love Humans: Emotional Interface Design
aarron
275
41k
How to Talk to Developers About Accessibility
jct
2
630
Chasing Engaging Ingredients in Design
codingconduct
0
410
Highjacked: Video Game Concept Design
rkendrick25
PRO
2
600
Building AI with AI
inesmontani
PRO
1
1.4k
Groundhog Day: Seeking Process in Gaming for Health
codingconduct
0
500
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
28
3.8k
Making Projects Easy
brettharned
120
6.9k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
133
20k
Making the Leap to Tech Lead
cromwellryan
135
10k
Fashionably flexible responsive web design (full day workshop)
malarkey
409
67k
Dominate Local Search Results - an insider guide to GBP, reviews, and Local SEO
greggifford
PRO
0
410