Skip to content

Instantly share code, notes, and snippets.

@pelmered
Created October 9, 2015 17:14
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save pelmered/31bbb4232d1d6f640dcb to your computer and use it in GitHub Desktop.
Save pelmered/31bbb4232d1d6f640dcb to your computer and use it in GitHub Desktop.
Example composer.json for WordPress
{
"repositories": [
{
"type": "composer",
"url": "http://wpackagist.org"
},
{
"type": "package",
"package": {
"name": "advanced-custom-fields/advanced-custom-fields-pro",
"version": "5.2.6",
"type": "wordpress-plugin",
"dist": {
"type": "zip",
"url": "http://connect.advancedcustomfields.com/index.php?p=pro&a=download&k=<your ACF key>"
}
}
}, {
"type": "vcs",
"url": "https://github.com/pelmered/post-types-creator"
},
],
"require": {
"php": ">=5.4",
"johnpbloch/wordpress": "*",
"wpackagist-plugin/duplicate-post": "*",
"wpackagist-plugin/enable-media-replace": "*",
"wpackagist-plugin/wordpress-seo": "*",
"wpackagist-plugin/angry-creative-logger": "*",
"wpackagist-plugin/ewww-image-optimizer": "*",
"wpackagist-plugin/ricg-responsive-images": "*",
"wpackagist-plugin/black-studio-tinymce-widget": "*",
"advanced-custom-fields/advanced-custom-fields-pro": "*",
"pelmered/post-types-creator": "dev-master",
"rarst/fragment-cache": "^1.2",
"rarst/update-blocker": "^1.0"
},
"require-dev": {
"wpackagist-plugin/debug-bar": "*",
"wpackagist-plugin/debug-bar-transients": "*",
"wpackagist-plugin/force-regenerate-thumbnails": "*"
},
"extra": {
"wordpress-install-dir": "wordpress",
"installer-paths": {
"public/wp-content/mu-plugins/{$name}/": ["type:wordpress-muplugin", "rarst/update-blocker", "angrycreative/ac-disable-wp-updates"],
"public/wp-content/plugins/{$name}/": ["type:wordpress-plugin"],
"public/wp-content/themes/{$name}/": ["type:wordpress-theme"]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment