Skip to content

Instantly share code, notes, and snippets.

@kingkool68
Created September 5, 2016 19:24
Show Gist options
  • Save kingkool68/7db4fb9e72316cf744f0bcd5d487dccc to your computer and use it in GitHub Desktop.
Save kingkool68/7db4fb9e72316cf744f0bcd5d487dccc to your computer and use it in GitHub Desktop.
Sample composer.json for managing plugins via Composer
{
"name": "your-github-name/your-repo",
"license": "GPLv3",
"minimum-stability": "dev",
"prefer-stable": true,
"authors": [
{
"name": "Your Name",
"email": "[email protected]"
},
],
"repositories": [
{
"type": "composer",
"url": "https://wpackagist.org"
},
{
"type": "vcs",
"url": "[email protected]:deliciousbrains/wp-amazon-web-services.git"
},
{
"type": "vcs",
"url": "[email protected]:humanmade/mercator.git"
}
],
"require": {
"php": ">=5.6",
"composer/installers": "~1.0.12",
"deliciousbrains/wp-amazon-web-services": "0.3.6",
"humanmade/mercator": "dev-master#04251f596eef8e3c7c12dce7b0627958b44acd19",
"joshtronic/php-loremipsum": "dev-master",
"wpackagist-plugin/co-authors-plus": "~3.2.1",
"wpackagist-plugin/wp-redis": "0.5.0"
},
"require-dev": {
"phpunit/phpunit": "~4.8.21",
"wpackagist-plugin/debug-bar": "~0.8.4",
"wpackagist-plugin/debug-bar-actions-and-filters-addon": "~1.5.1",
"wpackagist-plugin/query-monitor": "~2.12.0"
},
"scripts": {
"post-install-cmd": "bin/post-install.sh",
"post-update-cmd": "bin/post-install.sh"
},
"extra": {
"installer-paths": {
"wp-content/mu-plugins/{$name}/": ["type:wordpress-muplugin"],
"wp-content/plugins/{$name}/": ["type:wordpress-plugin"],
"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