2017 © Pedro Peláez
 

library wordpress-composer-scripts

Scripts for use with Wordpress managed via Composer

image

ethanclevenger91/wordpress-composer-scripts

Scripts for use with Wordpress managed via Composer

  • Wednesday, September 7, 2016
  • by ethanclevenger91
  • Repository
  • 1 Watchers
  • 0 Stars
  • 60 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 3 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

WordpressComposerScripts

Helpful scripts for use with Wordpress managed via Composer, (*1)

Installation

composer require ethanclevenger91/wordpress-composer-scripts., (*2)

Or manually add it to your composer.json file., (*3)

Usage

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

To use, assign functions to composer events, like so:, (*5)

"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., (*6)

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

The Versions

07/09 2016

dev-master

9999999-dev

Scripts for use with Wordpress managed via Composer

  Sources   Download

The Requires

 

The Development Requires