Skip to content

Host or Publish your WordPress plugin from GitHub and get update notification on every release made via Github.

Notifications You must be signed in to change notification settings

itzmekhokan/host-via-github

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

host-via-github

Host or Publish your WordPress plugin from GitHub and get update notification on every release made via Github.

Getting Started

To add this feature for your plugin only you have to follow below steps -

  1. Include config.php file into your plugin
   // include github configuration file
    include 'config.php';
  1. After this include class-host-via-github.php file into your plugin.
   // include Host via GitHub Class file
    include 'class-host-via-github.php';
  1. And then initialize the above class with define config constants
   // include Host via GitHub Class file
    new Host_Via_GitHub( array(
        'pluginFile' 	=> HVG_PLUGIN_FILE,
        'pluginVersion' => HVG_VERSION,
        'userName' 		=> HVG_GITHUB_USERNAME,
        'repositoryName'=> HVG_GITHUB_REPOSITORY_NAME,
        'organisation'  => HVG_GITHUB_ORGANISATION,
        'accessToken' 	=> HVG_GITHUB_ACCESSTOKEN,
        'autoUpdate' 	=> HVG_AUTO_UPDATE,
        'preReleaseTag' => HVG_PRE_RELEASE_VERSION_TAG,
    ) );
  1. Thats it, All Done. Have fun.

About

Host or Publish your WordPress plugin from GitHub and get update notification on every release made via Github.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages