This is base wordpress setup based on composer.
Have you ever problems to collaborate in team using WordPress? There is a solution! Just download this repository and setup it your way.
This allow you create your WP setup based on composer. Which solve all problem during collaboration. All plugins, themes, media are stored out of WordPress directory, so you can easly manage them with teammates.
Is stored in root directory, when WordPress cant find wp-config.php
file, looking for it one directory above. That's why we can store it into root directory.
This is specially prepared config that use .env
file and you can find inside setup for directories.
WordPress is installed into directory system
Plugins are installed into directory wp-contet\plugins\{name}
Themes are installed into directory wp-content\themes\{name}
Media files are stored into wp-content\uploads\{name}
Previously it was stored in media
inside root, but Gravity form had some problem with it.
Add this code to .htaccess file to prevent access for your .env files
<Files ~ "^.*\.([Ee][Nn][Vv])">
order allow,deny
deny from all
satisfy all
</Files>
Plugins are installed into directory wp-content\mu-plugins\{name}
This setup also contain Custom download for ACF PRO if you wish.
- Check if
.gitignore
fits your needs - If you wish change directory names. It can be done inside
wp-config.php
thencomposer.json
andindex.php
for system directory - Create your
.env
. You can find example.env-example
- Add all plugins, themes etc using
composer.json
file. You can check for plugins and thems using WordPress Packagist - You can use
Advenced custom fields PRO
by adding your LICENSE key into .env file.
After base setup just run install
composer install
For updates
composer update
- PHP dotenv - Required for .ENV
- WordPress Packagist - WP repo for composer
- Composer - Composer installers
#####Other prenium plugins?
Beerware