2017 © Pedro Peláez
 

project wordpress-starter

WordPress starter project that works with Composer

image

ixa/wordpress-starter

WordPress starter project that works with Composer

  • Wednesday, January 28, 2015
  • by cesarhdz
  • Repository
  • 2 Watchers
  • 5 Stars
  • 72 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 7 Versions
  • 0 % Grown

The README.md

Ixa WordPress Starter

WordPress project starter that works with Composer and WP-CLI, (*1)

Installation

$ composer create-project ixa/wordpress-starter <project-name> --prefer-dist
$ cd <project-name>

This command clones Ixa WordPress Starter and downloads all of its dependencies. It also ask your enviroment variables: database credentials and home_url., (*2)

If your database is ready you can install WordPress typing:, (*3)

$ vendor/bin/wp core install --promt

If wp-cli prints a success message the installation is completed. You can use the PHP build in server to see your new site in htpp://localhost:1234, (*4)

$ php -S localhost:1234

Configuration

In Ixa WordPress Starter, wp-config.php file is not meant to hold configuration all constants are set by Ixa WP-Config and are located in config folder., (*5)

.env.yml file

This file is dynamically created by Composer in every installation or update and must not be added to version control. The env.yml.dist is needed to tell Incenteev/ParameterHandler what variables are required and should not be modified., (*6)

Default Theme

Ixa WordPress Starter ships with a default theme that contains only the welcome message you see after installation and is set in wp-config.php using WP_DEFAULT_THEME constant. You can override to register your theme, this way, no database configuration is needed and the app is more portable., (*7)

WP-CLI Scaffold

Using WP-CLI you can create a new theme with the scaffold command, (*8)

$ vendor/bin/wp scaffold _s <theme-name>

Then you have a new theme based on Underscores ready to start., (*9)

Child Themes

Since we are using Composer, the recommended way to use child themes is to register the parent theme as dependency in composer.json, just make sure the project type is wordpress-theme, so that Composer Installer knows where to install it., (*10)

Note that if you want to register the child theme using WP_DEFAULT_THEME constant you must define TEMPLATEPATH as this article suggests., (*11)

The Versions

28/01 2015

dev-develop

dev-develop

WordPress starter project that works with Composer

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Avatar cesarhdz

17/02 2014

dev-master

9999999-dev

WordPress starter project that works with Composer

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Cesar Hernandez

17/02 2014

1.0.0-alpha

1.0.0.0-alpha

WordPress starter project that works with Composer

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Cesar Hernandez

16/12 2013

0.2.1

0.2.1.0

WordPress starter project that works with Composer

  Sources   Download

GPL-2.0+

The Requires

 

by Cesar Hernandez

24/11 2013

0.2

0.2.0.0

WordPress starter project that works with Composer

  Sources   Download

GPL-2.0+

The Requires

 

by Cesar Hernandez

30/10 2013

0.1

0.1.0.0

WordPress starter project that works with Composer

  Sources   Download

GPL-2.0+

The Requires

 

by Cesar Hernandez

18/10 2013

0.1-alpha

0.1.0.0-alpha

WordPress starter project that works with Composer

  Sources   Download

GPL-2.0+

The Requires

 

by Cesar Hernandez