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
Composer & WordPress
Search
Tom J Nowell
October 16, 2013
Programming
0
950
Composer & WordPress
Slides from a MWUG talk given on Wednesday the 16th
Tom J Nowell
October 16, 2013
Tweet
Share
More Decks by Tom J Nowell
See All by Tom J Nowell
Using Blocks Outside The Editor
tarendai
0
980
Composer_and_WordPress__1_.pdf
tarendai
0
81
REST APIs for Absolute Beginners
tarendai
0
980
VVV 2
tarendai
0
770
WordCamp Europe 2016 - Handling Anxiety
tarendai
1
470
Escape From New York
tarendai
0
720
WP The Right Way
tarendai
0
1k
Code Deodorant 2014
tarendai
1
720
Adv WP CLI
tarendai
0
690
Other Decks in Programming
See All in Programming
SpecKitでどこまでできる? コストはどれくらい?
leveragestech
0
750
私はどうやって技術力を上げたのか
yusukebe
43
18k
育てるアーキテクチャ:戦い抜くPythonマイクロサービスの設計と進化戦略
fujidomoe
1
170
Server Side Kotlin Meetup vol.16: 内部動作を理解して ハイパフォーマンスなサーバサイド Kotlin アプリケーションを書こう
ternbusty
3
180
開発生産性を上げるための生成AI活用術
starfish719
3
670
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
330
CSC509 Lecture 06
javiergs
PRO
0
260
monorepo の Go テストをはやくした〜い!~最小の依存解決への道のり~ / faster-testing-of-monorepos
convto
2
490
止められない医療アプリ、そっと Swift 6 へ
medley
1
170
Things You Thought You Didn’t Need To Care About That Have a Big Impact On Your Job
hollycummins
0
220
非同期jobをtransaction内で 呼ぶなよ!絶対に呼ぶなよ!
alstrocrack
0
860
CSC305 Lecture 04
javiergs
PRO
0
270
Featured
See All Featured
Site-Speed That Sticks
csswizardry
11
900
Fantastic passwords and where to find them - at NoRuKo
philnash
52
3.4k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.2k
How to Think Like a Performance Engineer
csswizardry
27
2k
How To Stay Up To Date on Web Technology
chriscoyier
791
250k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
30
2.9k
Code Reviewing Like a Champion
maltzj
526
40k
Java REST API Framework Comparison - PWX 2021
mraible
33
8.9k
Art, The Web, and Tiny UX
lynnandtonic
303
21k
Music & Morning Musume
bryan
46
6.8k
Rails Girls Zürich Keynote
gr2m
95
14k
Documentation Writing (for coders)
carmenintech
75
5.1k
Transcript
Composer & WordPress Deploy All The Things - Tom J
Nowell
1. What is Composer 2. Installing WordPress 3. Installing a
Theme 4. Installing a Plugin
What is Composer?
composer.json { "name" : "tomjn/myproject", "description": "A handy description.", "require"
: { "php": ">=5.3" } }
Is it Valid? ~/www/test › composer validate ./composer.json is valid,
but with a few warnings See http://getcomposer.org/doc/04-schema.md for details on the schema No license specified, it is recommended to do so. For closed-source software you may use "proprietary" as license.
composer.json { "name" : "tomjn/myproject", "description": "A handy description.", "license":
"GPL-2.0+", "require" : { "johnpbloch/wordpress": "3.6.1", "php": ">=5.3" } }
~/www/test › composer install Loading composer repositories with package information
Installing dependencies (including require-dev) - Installing johnpbloch/wordpress-core- installer (0.2.0) Downloading: 100% - Installing johnpbloch/wordpress (3.6.1) Downloading: 100% Writing lock file Generating autoload files
None
{ "name" : "tomjn/myproject", "description": "A handy description.", "license": "GPL-2.0+",
"repositories": [ { "type": "package", "package": { "name": "wordpress/twentythirteen", "version": "1.0", "type": "wordpress-theme", "source": { "url": "http://themes.svn.wordpress.org/", "type": "svn", "reference": "twentythirteen/1.0/" }, "require": { "composer/installers": "~1.0" } } } ], "require" : { "johnpbloch/wordpress": "3.6.1", "wordpress/twentythirteen": "1.0", "php": ">=5.3" } }
~/www/test › composer update Loading composer repositories with package information
Updating dependencies (including require-dev) - Installing wordpress/twentythirteen (1.0) Checking out twentythirteen/1.0/ Writing lock file Generating autoload files
{ "name" : "tomjn/myproject", "description" : "A handy description.", "license"
: "GPL-2.0+", "repositories": [ { "type": "composer", "url": "http://wpackagist.org" }, { "type": "package", "package": { "name": "wordpress/twentythirteen", …………………………………………….. "require" : { "johnpbloch/wordpress": "3.6.1", "wordpress/twentythirteen": "1.0", "wpackagist/akismet": "*", "php": ">=5.3" } }
~/www/test › composer update Loading composer repositories with package information
Updating dependencies (including require-dev) - Installing wpackagist/akismet (trunk) Downloading: 100% Writing lock file Generating autoload files
None
Final Steps
Questions?