torounit/composer-wp

This package is abandoned and no longer maintained. No replacement package was suggested.

3.3.0 2017-10-14 19:36 UTC

This package is auto-updated.

Last update: 2021-08-28 06:54:12 UTC


README

This project is now archived. It is better to use @wordpress/env.

WordPress Environment for PHP Built-in Server.

Getting Started

1. Install PHP, composer, WP-CLI, mariaDB ( or MySQL ) and jq, cURL.

for OSX

PHP and cURL are pre-installed.

$ brew install composer wp-cli mariadb jq 

2. Create Project

$ composer create-project torounit/composer-wp-dev-kit path/to/project

3. Start Development!

$ cd path/to/project
$ composer create-env
$ vi .env.json
$ mysql.server start
$ composer provision

./bin/provision.sh create database and install WordPress if is not installed.

Start WordPress!

$ composer server

4. For Production.

Create and Edit config.php.

$ composer create-production-config
$ vi config.php

Directory & Files.

  • . Document root.
  • ./wp WordPress core files.
  • ./wp-content Custom wp-content.
  • ./wp-content/mu-plugins/vendor for composer library.
  • .env.json setting your environment.

Commands

  • composer provision Provisioning WordPress.
  • composer server Start wp server and open browser.
  • composer import-theme-unit-test Import theme unit test data.
  • composer create-env create .env.json
  • composer create-production-config create config.php