Download the PHP package wplatest/updater without Composer
On this page you can find all versions of the php package wplatest/updater. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download wplatest/updater
More information about wplatest/updater
Files in wplatest/updater
Package updater
Short Description A simple and lightweight package to update your WordPress plugins from AutomagicWP.
License GPL-3.0-or-later
Homepage https://www.automagicwp.com
Informations about the package updater
WordPress Plugin Updater
A simple and lightweight updater for WordPress plugins hosted on AutomagicWP. It hooks into WordPress's built-in update mechanism to check for new versions and display the standard update notice in the admin area.
[!IMPORTANT] This updater requires your plugin to be hosted on AutomagicWP.com. Your plugin header must include
Update URI: https://www.automagicwp.com.
Minimum requirements
- PHP: 8.0 or later
- WordPress: 6.0 or later
- Access to your plugin's source code.
- Optional: Composer for managing PHP dependencies
Installation
Via Composer
Manual
Copy the file in src/ into your plugin and require it:
Usage
Instantiate PluginUpdater inside your plugin. The defaults point at automagicwp.com so you only need to provide file and id for the standard setup:
All options
| Option | Required | Default | Description |
|---|---|---|---|
file |
Yes | — | Path to the main plugin file (__FILE__) |
id |
Yes | — | Plugin ID from the AutomagicWP dashboard |
secret |
No | — | API key or license key. Required for private plugins and white-label branding. |
api_url |
No | https://www.automagicwp.com/api/v1/plugin/update |
Update check endpoint |
config_url |
No | https://www.automagicwp.com/api/v1/plugin/config |
Branding config endpoint |
hostname |
No | automagicwp.com |
Must match the Update URI header |
telemetry |
No | true |
Send anonymous site info (WP version, PHP version) with update checks |
Replace plugin_abc123 with the Plugin ID shown in your AutomagicWP dashboard under Settings.
White-label branding
Agencies distributing a single plugin to multiple client sites can create licenses in the AutomagicWP dashboard (Settings → White-label Licenses). Each license has:
- Its own API key (revocable per site)
- Client name — shown in the plugin admin UI instead of the canonical plugin name
- Primary colour / foreground colour — brand colours for the admin UI
- Metadata — free-form JSON for any extra fields (logo URL, support email, feature flags, etc.)
Fetching branding config
Pass the license key as the secret option, then call get_config() anywhere in your plugin:
Response shape
All fields are nullable — always provide defaults in your plugin code.
Caching
get_config() caches the response in a WordPress transient for 5 minutes to avoid a remote call on every admin page load. To force a fresh fetch (e.g. after saving a settings page):
Providing a license key settings field
Your plugin's settings page should let the site owner paste their license key: