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
780
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
710
Composer_and_WordPress__1_.pdf
tarendai
0
61
REST APIs for Absolute Beginners
tarendai
0
760
VVV 2
tarendai
0
530
WordCamp Europe 2016 - Handling Anxiety
tarendai
1
330
Escape From New York
tarendai
0
610
WP The Right Way
tarendai
0
940
Code Deodorant 2014
tarendai
1
610
Adv WP CLI
tarendai
0
580
Other Decks in Programming
See All in Programming
Semantic search with Django and pgvector
pauloxnet
0
240
HUIT新歓2024「競技プログラミング、やってみませんか?」
slephy2784
1
270
Komplexe Oberflächen mit SVG und der Web Animation API
joergneumann
0
670
Rails と人魚の話/rails-and-mermaid
sanfrecce_osaka
0
100
2 週間で Twitter Bot を作ってみた
contour_gara
0
200
Site Reliability Engineering for GMO
pyama86
7
1k
StoreKit2によるiOSのアプリ内課金のリニューアル
kangnux
0
110
DMMプラットフォームがTiDB Cloudを採用した背景
pospome
8
4k
単体テストを書かない技術 #phpcon_odawara
o0h
PRO
26
8.2k
Blue/Greenデプロイの導入による 運用フローの改善
kudoas
1
370
Designing for tomorrow's programming workflows
honnibal
PRO
2
120
Front-end application development, Symfony-style(s)
dunglas
2
2k
Featured
See All Featured
What's in a price? How to price your products and services
michaelherold
237
11k
Code Reviewing Like a Champion
maltzj
514
39k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
357
22k
It's Worth the Effort
3n
180
27k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
25
2.3k
Thoughts on Productivity
jonyablonski
58
3.8k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
17
1.4k
Side Projects
sachag
451
41k
Designing on Purpose - Digital PM Summit 2013
jponch
110
6.5k
Reflections from 52 weeks, 52 projects
jeffersonlam
345
19k
The Cost Of JavaScript in 2023
addyosmani
16
3.8k
Large-scale JavaScript Application Architecture
addyosmani
504
110k
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?