Skip to content

Instantly share code, notes, and snippets.

@sbruner
Last active April 20, 2022 15:48
Show Gist options
  • Save sbruner/972cf20a89240544aba757ed1d4290cd to your computer and use it in GitHub Desktop.
Save sbruner/972cf20a89240544aba757ed1d4290cd to your computer and use it in GitHub Desktop.
composer.json for WordPress development
{
"name": "mycompany/myproject",
"description": "Lint and format code for a WordPress website.",
"type": "project",
"license": "GPL-2.0-or-later",
"authors": [
{
"name": "SlipFire",
"email": "team@slipfire.com"
}
],
"config": {
"platform": {
"php": "7.4"
},
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
},
"require-dev": {
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.1",
"phpcompatibility/phpcompatibility-wp": "^2.1.1",
"wp-cli/wp-cli-bundle": "^2.5.0",
"wp-coding-standards/wpcs": "^2.3.0"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment