Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 748 Bytes

readme.md

File metadata and controls

30 lines (22 loc) · 748 Bytes

Endurance WordPress Plugin Updater

A Composer package handling updates for WordPress plugins managed by Endurance.

Installation

Ensure that this block is added to your composer.json file:

{
  "repositories": [
      {
        "type": "composer",
        "url": "https://bluehost.github.io/satis/"
      }
  ]
}

Run composer require bluehost/endurance-wp-plugin-updater

Usage

Invoke the updater as follows:

use Endurance_WP_Plugin_Updater\Updater;
new Updater( 'bluehost', 'bluehost-wordpress-plugin', 'bluehost-wordpress-plugin/bluehost-wordpress-plugin.php' );

The first parameter is the GitHub user name. The second parameter is the GitHub repo slug. The final parameter is the WordPress plugin basename.