Download the PHP package wodby/wordpress-composer without Composer
On this page you can find all versions of the php package wodby/wordpress-composer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download wodby/wordpress-composer
More information about wodby/wordpress-composer
Files in wodby/wordpress-composer
Package wordpress-composer
Short Description Project template for WordPress projects with composer
License GPL-2.0+
Informations about the package wordpress-composer
Composer Template for WordPress Projects
This project template should provide a kickstart for managing your site dependencies with Composer.
This project consist of:
- WordPress core: johnpbloch/wordpress-core-installer
- Repository https://wpackagist.org/ to install WordPress plugins and themes
composer/installers
to set custom paths for plugins and themesdrupal-composer/preserve-paths
to exclude paths for plugins and themes under version controlwodby.yml
that runscomposer install
. You can remove it if you're not using Wodby
Current WordPress core: ~5.0
Paths
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.
Usage
First you need to install composer.
Note: The instructions below refer to the global composer installation. You might need to replace
composer
withphp composer.phar
(or similar) for your setup.
Start a new project:
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.
How to install WordPress plugins and themes?
With composer require ...
you can download new dependencies to your installation.
How to manage my custom themes and plugins under version control?
-
Exclude path to your plugin or theme from .gitignore. Example for theme under
web/wp-content/themes/my-custom-theme/
: -
Add the same path to your composer.json under
extra > preserve-paths
: - Add your plugin/theme directory under version control
- Run
composer install
. Composer will install WordPress core and keep your custom theme
Deployment via Wodby
- Create a new project.
- Connect the repository to Wodby.
- Deploy new app, choose WordPress stack, on the 2nd step of the form choose connected repository and enter
web
as Codebase dir.
All versions of wordpress-composer with dependencies
drupal-composer/preserve-paths Version ^0.1
johnpbloch/wordpress-core-installer Version ^2.0
johnpbloch/wordpress-core Version ~5.0