Skip to content

Instantly share code, notes, and snippets.

@devuri
Last active February 1, 2021 04:19
Show Gist options
  • Save devuri/2fca43d53830db7d0f299c4d6cf89e34 to your computer and use it in GitHub Desktop.
Save devuri/2fca43d53830db7d0f299c4d6cf89e34 to your computer and use it in GitHub Desktop.
Secure Your WordPress config file with environment variables using Composer
{
"require": {
"php": "^7.0",
"roots/wp-config": "1.0.0",
"symfony/error-handler": "^5.1",
"symfony/var-dumper": "^5.1.4",
"vlucas/phpdotenv": "^5.2"
},
"config": {
"optimize-autoloader": true,
"sort-packages": true
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment