Skip to content

Instantly share code, notes, and snippets.

@vardumper
Created September 22, 2019 12:09
Show Gist options
  • Save vardumper/e032aef7ddb31a80f77d6dd21c4a1718 to your computer and use it in GitHub Desktop.
Save vardumper/e032aef7ddb31a80f77d6dd21c4a1718 to your computer and use it in GitHub Desktop.
Example composer file for Wordpress & WooCommerce
{
"name" : "githubuser/projectname",
"description" : "Project Name",
"type" : "project",
"license" : "GPL",
"authors" : [{
"name" : "Your Name"
}
],
"repositories" : [{
"type" : "composer",
"url" : "https://wpackagist.org"
}, {
"type" : "composer",
"url" : "https://packagist.org"
}
],
"minimum-stability" : "dev",
"prefer-stable" : true,
"prefer-source" : true,
"config" : {
"sort-packages" : true,
"optimize-autoloader" : true,
"platform" : {
"php" : "7.3"
}
},
"require" : {
"composer/installers" : "^1.2",
"drupal-composer/preserve-paths" : "dev-master",
"johnpbloch/wordpress-core" : "5.2.3",
"johnpbloch/wordpress-core-installer" : "^1.0",
"symfony/console" : "^4.2",
"vlucas/phpdotenv" : "^3.3@dev",
"wpackagist-plugin/advanced-custom-fields" : "^5.8",
"wpackagist-plugin/disable-json-api" : "^1.4",
"wpackagist-plugin/maintenance" : "^3.6",
"wpackagist-plugin/manage-notification-emails" : "^1.4",
"wpackagist-plugin/woocommerce" : "^3.7",
"wpackagist-plugin/wp-crontrol" : "^1.7",
"wpackagist-plugin/wp-fastest-cache" : "0.8.9.4"
},
"extra" : {
"installer-paths" : {
"web/wp-content/plugins/{$name}/" : [
"type:wordpress-plugin"
],
"web/wp-content/themes/{$name}/" : [
"type:wordpress-theme"
]
},
"preserve-paths" : [
"web/wp-config.php",
"web/wp-content/uploads",
"web/wp-content/cache",
"web/assets",
"web/wp-content/languages",
"web/wp-content/plugins/perfmatters"
],
"wordpress-install-dir" : "web"
},
"require-dev" : {
"phpmd/phpmd" : "^2.6",
"squizlabs/php_codesniffer" : "^3.3"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment