2017 © Pedro Peláez
 

project wp-starter

WordPress dependency management with Composer

image

webdeveric/wp-starter

WordPress dependency management with Composer

  • Sunday, February 18, 2018
  • by webdeveric
  • Repository
  • 2 Watchers
  • 6 Stars
  • 3 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

WP Starter

WordPress dependency management with Composer

With Composer, you can define the WordPress core as a dependency so you never have to include it in your repo. You can also specify which plugins and themes you want to require., (*1)

WordPress core files

For this to work, the WordPress core needs to be put in its own directory., (*2)

The included composer.json file is already set up to do all of this for you., (*3)

Plugins and themes

If the plugins/themes you want are published to the wordpress.org SVN repo, they will also be available on WordPress Packagist, which is a Composer repository that mirrors the SVN repo., (*4)

If you want to install a plugin from your version control system (Git, SVN, etc.), please follow these instructions., (*5)

The included composer.json file has an example of getting a plugin from Github., (*6)

Installation

Install Composer before you do anything else., (*7)

Use this repo as the basis for a new project

composer create-project -s dev --prefer-dist --no-interaction -- webdeveric/wp-starter ./your-folder-here

Local development

Run composer setup-hooks to setup the git pre-commit hook. It will check coding standards and run tests when you commit., (*8)

I've included a Dockerfile that is based on php:8.3-apache It comes with Xdebug already installed., (*9)

A sample DB will be imported the first time you build. The WordPress username and password are both wp., (*10)

To get started, run the following:, (*11)

:one: make install, (*12)

:two: make dev, (*13)

You may want to view the Makefile to see all the commands., (*14)

The Versions

18/02 2018

dev-master

9999999-dev

WordPress dependency management with Composer

  Sources   Download

GPL-3.0-or-later

The Requires

 

The Development Requires

wordpress composer docker starter project dependency