Download the PHP package wpboilerplate/wpb-updater-checker-github without Composer
On this page you can find all versions of the php package wpboilerplate/wpb-updater-checker-github. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download wpboilerplate/wpb-updater-checker-github
More information about wpboilerplate/wpb-updater-checker-github
Files in wpboilerplate/wpb-updater-checker-github
Package wpb-updater-checker-github
Short Description Composer to autoload the Updater via Github
License GPL-2.0-or-later
Homepage https://github.com/WPBoilerplate/wpb-updater-checker-github
Informations about the package wpb-updater-checker-github
WPBoilerplate Updater Checker — GitHub
A Composer library that gives any GitHub-hosted WordPress plugin automatic update notifications inside the WordPress admin, using the Plugin Update Checker library.
Requirements
- PHP 7.4+
- WordPress 5.0+
- Composer
- A GitHub repository for the plugin you want to auto-update
Internal Composer dependencies (pulled in automatically):
| Package | Constraint |
|---|---|
yahnis-elsts/plugin-update-checker |
dev-master |
automattic/jetpack-autoloader |
^5.0 |
Installation
Add the library to the composer.json of your WordPress project or plugin:
Then install:
Make sure Composer's autoloader is loaded in your plugin or theme:
GitHub Repository Settings
The following settings must be in place on each GitHub repo you want to track:
1. Repository visibility
- Public repo: works out of the box — no token needed.
- Private repo: requires a GitHub Personal Access Token (PAT) with at least
reposcope. See GitHub PAT docs.
2. Plugin version header
The Version field in your plugin's main PHP file must be kept up to date — this is what WordPress (and the update checker) reads to decide whether an update is available:
Bump this value and push to your release branch to trigger update notifications.
3. Release branch
Decide which branch holds your stable releases (commonly main or stable). The checker watches this branch's Version header. Keep feature work on other branches and only merge to the release branch when ready.
4. GitHub Releases (optional — only if using release-assets)
If you set 'release-assets' => true, the updater will look for a ZIP file attached to a GitHub Release instead of downloading the branch archive. In that case:
- Create a GitHub Release tagged to match the version (e.g.
v1.2.0). - Attach the plugin ZIP as a release asset.
- The release tag must exist on the release branch.
Usage
Basic — single plugin
In your plugin's main file, after loading Composer's autoloader:
Private repository
Store tokens in wp-config.php as constants rather than hard-coding them:
Using GitHub Release assets
Multiple plugins via the filter
If you manage several GitHub-hosted plugins, register all of them through a single filter instead of creating multiple class instances:
Package Configuration Reference
| Key | Type | Required | Default | Description |
|---|---|---|---|---|
repo |
string | Yes | — | Full GitHub repository URL |
file_path |
string | Yes | — | Absolute path to the plugin's main PHP file |
name_slug |
string | Yes | — | Unique plugin slug (must be unique across all registered packages) |
release_branch |
string | No | 'main' |
Branch the updater watches for new versions |
token |
string | No | '' |
GitHub PAT — required for private repos |
release-assets |
bool | No | false |
When true, downloads update ZIPs from GitHub Release assets |
How Updates Are Delivered
- You push a commit to the release branch with a bumped
Versionheader (or publish a GitHub Release with an asset ifrelease-assetsis enabled). - When an admin visits the WordPress dashboard, the Plugin Update Checker queries GitHub and compares versions.
- WordPress shows the standard "update available" notice on the Plugins screen.
- Admins can update the plugin with one click, exactly like a plugin from WordPress.org.
Troubleshooting
| Symptom | Likely cause | Fix |
|---|---|---|
| No update notice after pushing a new version | Version header not bumped |
Bump Version: in the main plugin file and push |
| 404 / authentication errors | Private repo without a token | Add a valid token to the package config |
| Update notice but download fails | Wrong file_path |
Ensure file_path is the absolute path to the plugin's main PHP file |
| Update shows but wrong ZIP downloaded | release-assets mismatch |
Set 'release-assets' => true only if you attach ZIP assets to GitHub Releases |
| Updates checked too infrequently | Plugin Update Checker cache | Clear transients via WP-CLI: wp transient delete --all |
License
GPL-2.0-or-later
All versions of wpb-updater-checker-github with dependencies
automattic/jetpack-autoloader Version ^5.0
yahnis-elsts/plugin-update-checker Version dev-master