torounit / composer-wp
Installs: 17
Dependents: 0
Suggesters: 0
Security: 0
Stars: 21
Watchers: 5
Forks: 3
Open Issues: 0
Language:Shell
Requires
- php: >=5.4.2
- composer/installers: ^1.0
- johnpbloch/wordpress: ^4.7
- wp-cli/wp-cli: ^1.3
- wpackagist-plugin/built-in-server-helper: ^1.0
- wpackagist-plugin/theme-check: >=20160523.1
- wpackagist-plugin/wordpress-importer: ^0.6.3
- wpackagist-plugin/wp-multibyte-patch: ^2.8.1
- wpackagist-theme/twentyseventeen: ^1.0
- wpackagist-theme/vanilla: ^1.6
Requires (Dev)
- squizlabs/php_codesniffer: ^2.5.1
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
Startwp server
and open browser.composer import-theme-unit-test
Import theme unit test data.composer create-env
create .env.jsoncomposer create-production-config
create config.php