PHPackages                             onstage2426/wp-plugin-updater - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. onstage2426/wp-plugin-updater

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

onstage2426/wp-plugin-updater
=============================

v0.1.1(1mo ago)09↑2900%MITPHPPHP &gt;=8.3CI passing

Since Jun 6Pushed 4w agoCompare

[ Source](https://github.com/onstage2426/wp-plugin-updater)[ Packagist](https://packagist.org/packages/onstage2426/wp-plugin-updater)[ Docs](https://github.com/onstage2426/wp-plugin-updater)[ RSS](/packages/onstage2426-wp-plugin-updater/feed)WikiDiscussions 0.x Synced 1mo ago

READMEChangelog (10)Dependencies (1)Versions (3)Used By (0)

wp-hub-updater
==============

[](#wp-hub-updater)

[![PHP 8.3+](https://camo.githubusercontent.com/38027453aeb7eb818641c9de8f82b7624c3558d92634f1946edc715c3ddf8956/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e332532422d3737374242343f6c6f676f3d706870266c6f676f436f6c6f723d7768697465)](https://camo.githubusercontent.com/38027453aeb7eb818641c9de8f82b7624c3558d92634f1946edc715c3ddf8956/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e332532422d3737374242343f6c6f676f3d706870266c6f676f436f6c6f723d7768697465) [![WordPress 6.6+](https://camo.githubusercontent.com/ddd4bcd46ef8fa37e1b4186e40a8b6ceb9561b47a07298f1c3a936fecb337f32/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f576f726450726573732d362e362532422d3231373539423f6c6f676f3d776f72647072657373266c6f676f436f6c6f723d7768697465)](https://camo.githubusercontent.com/ddd4bcd46ef8fa37e1b4186e40a8b6ceb9561b47a07298f1c3a936fecb337f32/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f576f726450726573732d362e362532422d3231373539423f6c6f676f3d776f72647072657373266c6f676f436f6c6f723d7768697465) [![License](https://camo.githubusercontent.com/f8df3091bbe1149f398a5369b2c39e896766f9f6efba3477c63e9b4aa940ef14/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d677265656e)](https://camo.githubusercontent.com/f8df3091bbe1149f398a5369b2c39e896766f9f6efba3477c63e9b4aa940ef14/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d677265656e) [![Packagist Version](https://camo.githubusercontent.com/bdd7b0b56fec24670fe2645923787be8bbdefcea3acdb2a390cf6432db0fab79/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6f6e7374616765323432362f77702d6875622d75706461746572)](https://camo.githubusercontent.com/bdd7b0b56fec24670fe2645923787be8bbdefcea3acdb2a390cf6432db0fab79/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6f6e7374616765323432362f77702d6875622d75706461746572) [![CI](https://github.com/onstage2426/wp-hub-updater/actions/workflows/ci.yml/badge.svg)](https://github.com/onstage2426/wp-hub-updater/actions/workflows/ci.yml/badge.svg)

Delivers WordPress plugin and theme updates from a GitHub repository. Hooks into the standard WordPress update system so your entity appears in the Updates screen and can be installed with a single click.

Installation
------------

[](#installation)

```
composer require --dev onstage2426/wp-hub-updater
```

**Requirements:** PHP 8.3+, WordPress 6.6+

> This is a build-time tool — it generates a prefixed copy of itself into your project and is excluded from the final ZIP. See [Distribution → Namespace isolation](docs/distribution.md#namespace-isolation).

Quick start
-----------

[](#quick-start)

Examples below use `MyPlugin` as the namespace prefix. Replace it with whatever you passed to `vendor/bin/wp-hub-updater`.

**Plugin** — call this at the top level of your main plugin file:

```
use MyPlugin\WpHubUpdater\Plugin\PluginUpdater;

PluginUpdater::build('https://github.com/your-org/your-plugin', __FILE__)
    ->setAccessToken('ghp_xxxx');  // omit for public repos
```

**Theme** — call this in `functions.php`:

```
use MyPlugin\WpHubUpdater\Theme\ThemeUpdater;

ThemeUpdater::build('https://github.com/your-org/your-theme', 'your-theme')
    ->setAccessToken('ghp_xxxx');  // omit for public repos
```

`PluginUpdater::build()`
------------------------

[](#pluginupdaterbuild)

```
PluginUpdater::build(
    string $repositoryUrl,
    string $pluginFile,
    string $slug        = "",   // defaults to filename without .php
    int    $checkPeriod = 12,   // hours between checks; 0 disables automatic checks
    string $optionName  = "",   // defaults to hu_state-{slug}
): static
```

Pass `__FILE__` as `$pluginFile` from your plugin's main PHP file.

`ThemeUpdater::build()`
-----------------------

[](#themeupdaterbuild)

```
ThemeUpdater::build(
    string $repositoryUrl,
    string $themeSlug,          // theme directory name, e.g. "my-theme"
    int    $checkPeriod = 12,
    string $optionName  = "",
): static
```

Documentation
-------------

[](#documentation)

- [Configuration](docs/configuration.md) — all chainable methods, access token, branch, cooldown, release filters, reading state
- [WordPress filters](docs/filters.md) — filters and actions for info, update, detection strategies, error handling
- [Data classes](docs/data-classes.md) — `Update`, `PluginInfo`, `ThemeInfo` properties
- [Distribution](docs/distribution.md) — namespace isolation, release pipeline, draft-first workflow, version stamping, ZIP
- [`hu.json`](docs/hu-json.md) — metadata schema, changelog, local assets
- [Advanced](docs/advanced.md) — MU-plugins, debugging, WP-CLI, reliability features

License
-------

[](#license)

MIT — see [LICENSE](LICENSE).

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance92

Actively maintained with recent releases

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

3

Last Release

48d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/72b4747f6622546df06e3852dd72016ecc728bd4c408f451f5ed8e67b796928b?d=identicon)[onstage2426](/maintainers/onstage2426)

---

Top Contributors

[![onstage2426](https://avatars.githubusercontent.com/u/70956213?v=4)](https://github.com/onstage2426 "onstage2426 (34 commits)")

###  Code Quality

Static AnalysisRector

### Embed Badge

![Health badge](/badges/onstage2426-wp-plugin-updater/health.svg)

```
[![Health](https://phpackages.com/badges/onstage2426-wp-plugin-updater/health.svg)](https://phpackages.com/packages/onstage2426-wp-plugin-updater)
```

###  Alternatives

[richjenks/stats

Statistics library for non-statistical people

23153.8k1](/packages/richjenks-stats)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
