ethanclevenger91/wordpress-composer-scripts

This package is abandoned and no longer maintained. No replacement package was suggested.
There is no license information available for the latest version (dev-master) of this package.

Scripts for use with Wordpress managed via Composer

dev-master 2016-09-07 12:46 UTC

This package is auto-updated.

Last update: 2023-07-07 07:05:25 UTC


README

Helpful scripts for use with Wordpress managed via Composer

Installation

composer require ethanclevenger91/wordpress-composer-scripts.

Or manually add it to your composer.json file.

Usage

This package provides several scripts designed to do useful things/provide useful information when managing your WordPress installation via composer.

To use, assign functions to composer events, like so:

"scripts": {
  "pre-update-cmd": "WordpressComposerScripts\\Updates::preUpdateCommand",
  "post-update-cmd":"WordpressComposerScripts\\Updates::postUpdateCommand"
}

Available Scripts

The table below provides information as to what scripts are available, what they do, and what composer event they should be attached to. All classes are under the namespace WordpressComposerScripts.

Function Composer Event Description
Updates::preUpdateCommand pre-update-cmd Write plugin information to temp file before updating. To be used with Updates::postUpdateCommand
Updates::preUpdateCommand post-update-cmd Compare plugin information post-update with plugin information pre-update and print a table with the results. To be used with Updates::preUpdateCommand