- Duplicate
.env.example
and rename to.env
- Add the required and optional parameters in
.env
- Run
composer install
. (If you don't have Composer installed yet, follow these instructions).
You'll end up with WordPress installed in public/wp
and your working files in public/app
along with various plugins installed.
If you get this error in your development environment then vagrant ssh
, sudo vi /etc/hosts
and add
66.155.40.249 wordpress.org api.wordpress.org
66.155.40.250 wordpress.org api.wordpress.org
66.155.40.203 wordpress.org api.wordpress.org
If you want to use Advanced Custom Fields Pro, add the following to your composer.json
file. Being sure to replace ACFPROKEY
with your key, and update the version number to the latest.
{
"type": "package",
"package": {
"name": "advanced-custom-fields/advanced-custom-fields-pro",
"version": "5.3.7",
"type": "wordpress-plugin",
"dist": {
"type": "zip",
"url": "http://connect.advancedcustomfields.com/index.php?p=pro&a=download&k=ACFPROKEY"
}
}
},
"require": {
"advanced-custom-fields/advanced-custom-fields-pro": "*"
}
- This has been heavily influenced by Roots (github).
- johnpbloch for making WordPress a Composer package
- Seriously in all seriousness, I'm far more into WordPlate which is like this but far nicer - github.com/wordplate/wordplate.