This project demonstrates how to set up WordPress using Composer.
- PHP 7.4 or higher
- Composer
-
Clone the repository:
git clone https://github.com/yourusername/wp-composer-demo.git cd wp-composer-demo -
Install dependencies using Composer:
composer install
-
Configure your web server to serve the dist directory as the document root.
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
To update all dependencies to their latest versions, run:
composer updateRunning 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
https://docs.google.com/presentation/d/1y0MwpRFEZXdHV2wKqm5vIO3pmhOf0PDNm0MLD5Pzvmo/edit?usp=sharing