Skip to content

Instantly share code, notes, and snippets.

@neutraltone
Created November 15, 2016 10:55
Show Gist options
  • Save neutraltone/8da08fe416f7c4bbb2d47980f1ecd281 to your computer and use it in GitHub Desktop.
Save neutraltone/8da08fe416f7c4bbb2d47980f1ecd281 to your computer and use it in GitHub Desktop.
A starter composer file for managing wordpress with composer.
{
"repositories": [
{
"type": "composer",
"url": "https://wpackagist.org"
},
{
"type": "package",
"package": {
"name": "advanced-custom-fields/advanced-custom-fields-pro",
"version": "5.3.3",
"type": "wordpress-plugin",
"dist": {
"type": "zip",
"url": "https://connect.advancedcustomfields.com/index.php?t=5.3.3&p=pro&a=download&k=YOUR_PURCHASE_KEY_HERE"
}
}
}
],
"require": {
"composer/installers" : "~1.0",
"johnpbloch/wordpress": "*",
"php": ">=5.3.0",
"wpackagist-plugin/timber-library": "*",
"advanced-custom-fields/advanced-custom-fields-pro": "*"
},
"extra": {
"wordpress-install-dir": "wp",
"installer-paths" : {
"wp-content/mu-plugins/{$name}/": ["type:wordpress-plugin"]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment