dev-master
9999999-devProject template for WordPress projects with composer
GPL-2.0+
The Requires
- composer/installers ^1.2
- drupal-composer/preserve-paths 0.1.*
- johnpbloch/wordpress-core-installer ^1.0
- johnpbloch/wordpress-core ~4.9
Wallogit.com
2017 © Pedro Peláez
Project template for WordPress projects with composer
This project template should provide a kickstart for managing your site dependencies with Composer., (*1)
This project consist of:, (*2)
composer/installers to set custom paths for plugins and themesdrupal-composer/preserve-paths to exclude paths for plugins and themes under version control wodby.yml that runs composer install. You can remove it if you're not using Wodby
Current WordPress core: ~5.0, (*3)
By default, wordpress core will be installed in ./web directory. Plugins and themes will be installed in ./web/wp-content/plugins and ./web/wp-content/themes. Point your Apache vhost or similar to this project's ./web directory., (*4)
First you need to install composer., (*5)
Note: The instructions below refer to the global composer installation. You might need to replace
composerwithphp composer.phar(or similar) for your setup., (*6)
Start a new project:, (*7)
composer create-project wodby/wordpress-composer some-dir --stability dev --no-interaction
The composer create-project command passes ownership of all files to the project that is created. You should create a new git repository, and commit all files not excluded by the .gitignore file., (*8)
With composer require ... you can download new dependencies to your installation., (*9)
cd some-dir composer require wpackagist-plugin/wp-cfm
web/wp-content/themes/my-custom-theme/:
!web/
web/*
!web/wp-content/
web/wp-content/*
!web/wp-content/themes/
web/wp-content/themes/*
!web/wp-content/themes/my-custom-theme/ extra > preserve-paths:
"preserve-paths": [
"web/wp-content/themes/custom"
]
composer install. Composer will install WordPress core and keep your custom themeweb as Codebase dir.Project template for WordPress projects with composer
GPL-2.0+