Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Example composer file for a WordPress site
{
"name" : "vendor/project",
"description" : "Site build stack.",
"keywords" : [ "wordpress" ],
"license" : "GPL-2.0+",
"authors" : [
{
"name" : "Developer Name",
"email" : "email@somewhere.com",
"role" : "Lead Developer"
},
{
"name" : "Developer Name",
"email" : "email@somewhere.com",
"role" : "Developer"
},
],
"type" : "project",
"minimum-stability": "dev",
"repositories": [
{
"type": "composer",
"url" : "http://wpackagist.org"
},
{
"type": "git",
"url": "https://github.com/pods-framework/pods-json-api"
}
],
"config" : {
"vendor-dir": "vendor"
},
"require" : {
"johnpbloch/wordpress" : "4.0",
"wpackagist-plugin/pods" : "*",
"wpackagist-plugin/json-rest-api" : "*",
"json-rest-api" : "*",
"wpackagist-plugin/log-viewer" : "*",
"wpackagist-plugin/caldera-forms" : "*"
},
"require-dev" : {
"wpackagist-plugin/log-deprecated-notices" : "*",
"wpackagist-plugin/debug-bar" : "*",
"wpackagist-plugin/debug-bar-console" : "*",
"wpackagist-plugin/user-switching" : "*",
"wpackagist-plugin/simply-show-ids" : "*"
},
"extra" : {
"wordpress-install-dir": "public_html/wp",
"installer-paths": {
"public_html/content/plugins/{$name}/" : ["type:wordpress-plugin"],
"public_html/conent/{$name}/" : ["type:wordpress-theme"]
},
}
}
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.