Skip to content

Instantly share code, notes, and snippets.

@Shelob9
Last active December 31, 2018 15:53
Show Gist options
  • Save Shelob9/ad2e96e4aeabfa87450a to your computer and use it in GitHub Desktop.
Save Shelob9/ad2e96e4aeabfa87450a to your computer and use it in GitHub Desktop.
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