WordPress starter with Composer, easier configuration, and an improved folder structure
Simple, light and powerful WordPress skeleton for a WordPress site managed by composer.
Tested with :
- Wordpress 4.5.* => 5.4.*
- Wordpress single / multi website
- Public folder :
- WordPress directory :
- Custom content directory :
- Env file :
- Settings :
- Autoload your must-use plugins with bedrock-autoloader
Use composer to create new project.
composer create-project agencearcange/wordpress-composer-skeleton
- Update environment variables in the
.envfile - you can generate salts here
docker-compose up -dor other mysql database.
- Start your local server
$ cd wordpress-composer-skeleton $ php -S localhost:8000 -t public // or $ cd wordpress-composer-skeleton $ symfony serve --no-tls
Add your theme into
Add any required plugins, from their wpackagist packages or by adding your custom plugins into
composer require wpackagist-plugin/contact-form-7
If you want to install timber/timber library, you can just install it with composer :
composer require timber/timber
See the starter theme to try it.
Optimize composer install
composer install --no-dev --prefer-dist --no-interaction --optimize-autoloader
.env to set
Send to your prod server via FTP or with your favorite deployment tool 🚀
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.