Skip to content

Instantly share code, notes, and snippets.

@jesgs jesgs/composer.json
Created Mar 3, 2014

Embed
What would you like to do?
Example composer.json file for add WordPress as a dependency to a project.
{
"repositories": [
{
"type": "package",
"package": {
"name": "wordpress",
"type": "webroot",
"version": "3.8.1",
"dist": {
"type": "zip",
"url": "http://wordpress.org/latest.zip"
},
"require" : {
"fancyguy/webroot-installer": "1.0.0",
"composer/installers": "~1.0"
}
}
}
],
"require": {
"php": ">=5.3.0",
"wordpress": "3.8.1",
"composer/installers": "~1.0",
"fancyguy/webroot-installer": "1.0.0"
},
"extra": {
"webroot-dir": "core",
"webroot-package": "wordpress",
"installer-paths": {
"content/plugins/{$name}/": ["type:wordpress-plugin"]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.