Skip to content

martingrondein/wordpress-composer-full

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

Template for WordPress projects with Composer

A full fledged composer template for setting up and managing a WordPress project with Composer.

This template comes with the following standard plugins:


How To Setup:

Please see requirements below before moving on to the steps.

Requirements:

  • Server with PHP / Apache (or Nginx) / MySQL (or PostreSQL)
  • Git
  • Composer

Steps:

  1. Clone this repository into your website projects folder:
git clone git@github.com:martingrondein/wordpress-composer-full.git
  1. Install this desired setup with Composer:
cd wordpress-composer-full
composer install
  1. Copy web/index.php to your project folder. You can do this from the command line with
cp web/index.php ./index.php
  1. Slightly modify index.php in your project root. The index.php in the root of your project (the one you just created via a copy command) should be modified.

So...

require( dirname( __FILE__ ) . '/wp-blog-header.php' );

... becomes ...

require( dirname( __FILE__ ) . '/web/wp-blog-header.php' );

Please note: If you are looking for a no-frills composer.json template, please see the wordpress-composer-base repo.

About

A full fledged composer template for setting up and managing a WordPress project with Composer.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published