Skip to content

Instantly share code, notes, and snippets.

@AlexandreKilian
Created April 25, 2014 16:28
Show Gist options
  • Save AlexandreKilian/11295328 to your computer and use it in GitHub Desktop.
Save AlexandreKilian/11295328 to your computer and use it in GitHub Desktop.
Installing Wordpress and Themosis with Composer
{
"name": "Themosis Composerinstall",
"author": "Alexandre Kilian",
"repositories": [
{
"type": "composer",
"url": "http://wpackagist.org"
},
{
"type": "package",
"package": {
"name": "wordpress",
"type": "webroot",
"version": "3.8.1",
"dist": {
"type": "zip",
"url": "https://github.com/WordPress/WordPress/archive/3.8.1.zip"
},
"require": {
"fancyguy/webroot-installer": "1.0.0"
}
}
},
{
"type": "package",
"package": {
"name": "themosis/themosis",
"type": "wordpress-plugin",
"version": "1.0.0",
"dist": {
"type": "zip",
"url": "https://github.com/themosis/themosis/archive/master.zip"
},
"require": {
"symfony/http-foundation": "2.4.2"
}
}
}
],
"require": {
"php": ">=5.3.0",
"wordpress": "3.8.1",
"fancyguy/webroot-installer": "1.0.0",
"wpackagist-theme/twentyfourteen": "*",
"themosis/themosis": "1.0.0"
},
"scripts": {
"post-install-cmd": [
"cd wp && rm -rf wp-content && ln -s ../wp-content wp-content",
"cd ./wp-content/plugins/themosis && php ../../../composer.phar install"
]
},
"extra": {
"webroot-dir": "wp",
"webroot-package": "wordpress",
"installer-paths": {
"wp-content/languages/": ["language-de_DE-sie"]
}
}
}

This method downloads wordpress and themosis as zips, symlinks the wp-content folder into the wp folder from wordpress install, then installs themosis dependencies with composer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment