Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wp-composer-demo

Introduction

This project demonstrates how to set up WordPress using Composer.

Requirements

  • PHP 7.4 or higher
  • Composer

Installation

  1. Clone the repository:

    git clone https://github.com/yourusername/wp-composer-demo.git
    cd wp-composer-demo
  2. Install dependencies using Composer:

    composer install
  3. Configure your web server to serve the dist directory as the document root.

Usage

Adding Plugins and Themes

To add a WordPress plugin or theme, use the following commands:

  • Plugin:

    composer require wpackagist-plugin/plugin-name
  • Theme:

    composer require wpackagist-theme/theme-name

Updating Dependencies

To update all dependencies to their latest versions, run:

composer update

Final package code for deployment

Running composer install will create dist folder which will have full packaged code for WordPress core and custom/external plugin/theme spcified in composer.json file.

Use this dist folder to deploy

Presentation

https://docs.google.com/presentation/d/1y0MwpRFEZXdHV2wKqm5vIO3pmhOf0PDNm0MLD5Pzvmo/edit?usp=sharing

About

WordPress composer demo for Cambridge Wordpress group

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages