Download the PHP package contexis/wp-github-updater without Composer
On this page you can find all versions of the php package contexis/wp-github-updater. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download contexis/wp-github-updater
More information about contexis/wp-github-updater
Files in contexis/wp-github-updater
Package wp-github-updater
Short Description GitHub release based WordPress plugin updater
License GPL-2.0-or-later
Informations about the package wp-github-updater
wp-github-updater
Small Composer package for WordPress plugin update checks based on GitHub releases.
Installation
Quick Start
This is the intended default API. In the common case you only need:
- the main plugin file path
- the GitHub owner
- the GitHub repository name
Release Conventions
The updater checks the latest GitHub release by following the /releases/latest
redirect.
If you are also looking for reusable GitHub Actions, see:
https://github.com/gollenia/github-actions
Your repository should use release tags like:
v1.2.31.2.3
The download URL for updates is built as:
So your release asset should usually be named <repo>.zip.
What fallbackVersion Means
fallbackVersion is only a defensive fallback. It is used when GitHub cannot be
reached or the latest release tag cannot be determined.
It is not a separate "target version" and usually should be the currently installed plugin version. That prevents the updater from reporting a fake update when GitHub is temporarily unavailable.
If you use the recommended WordPressPluginUpdater::fromPluginFile(...) entry
point, you do not need to provide it manually. It is derived from the plugin
header version automatically.
Lower-Level API
If you want to wire the objects manually, you still can: