A starting point for managing a WordPress installation using Composer and Git.
- Installs WordPress into its own subdirectory.
- Uses WPackagist to manage plugins and themes.
To install:
- Clone or download the repo.
- Update required information in
composer.json
, including package name, description, authors and license. - Run following command to install packages:
composer install
- Copy
public/wp-config-sample.php
topublic/wp-config.php
and edit database connection details. - Set your host’s document root to the
public
directory. - Install WordPress in your browser.
By default, this will also install some plugins that are useful in website development. To skip the installation of these plugins, use the --no-dev
option:
$ composer install --no-dev
Simply make edits to the package list in composer.json
and run the following command:
$ composer update
See WPackagist for more information.