PHPackages                             jcodigital/jcore-update - 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. [API Development](/categories/api)
4. /
5. jcodigital/jcore-update

ActiveLibrary[API Development](/categories/api)

jcodigital/jcore-update
=======================

Composer-installable WordPress plugin updater integration for the JCORE Update API.

v1.2.0(1mo ago)0116↓88.9%8PHPPHP ^8.1CI failing

Since May 27Pushed 1mo agoCompare

[ Source](https://github.com/JCO-Digital/jcore-update)[ Packagist](https://packagist.org/packages/jcodigital/jcore-update)[ RSS](/packages/jcodigital-jcore-update/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (8)Versions (5)Used By (8)

jcore-update
============

[](#jcore-update)

Composer-installable WordPress library for integrating plugin updates with the JCORE Update API.

Install
-------

[](#install)

```
composer require jcodigital/jcore-update
```

Quickstart
----------

[](#quickstart)

```
use Jcore\Update\Config\UpdateConfig;
use Jcore\Update\Hooks\PluginUpdateHooks;
use Jcore\Update\Support\PluginHelper;

$config = new UpdateConfig(
    pluginFile: __FILE__,
    slug: 'my-plugin-slug',
    version: PluginHelper::getVersion(__FILE__),
    apiBaseUrl: 'https://api.example.com/v1',
    licenseKey: get_option('my_plugin_license_key') ?: null,
);

$updater = new PluginUpdateHooks($config);
$updater->register();
```

Full example plugin bootstrap
-----------------------------

[](#full-example-plugin-bootstrap)

See `examples/wordpress-plugin-bootstrap.php` for a complete example including:

- updater registration
- license option storage
- settings page form
- `validateLicense()` usage in a sanitize callback

License validation (headless)
-----------------------------

[](#license-validation-headless)

This library validates keys against `POST /v1/licenses/validate` but intentionally does not render any UI.

```
$result = $updater->validateLicense($licenseKey);

if ($result->isSuccess() && $result->valid) {
    // persist valid state in your plugin
} else {
    // show error/notice in your plugin UI
}
```

Convenience helper:

```
$isValid = $updater->isLicenseValid($licenseKey);
```

Notes
-----

[](#notes)

- `GET /v1/update-check` is used for update checks and plugin detail payloads.
- `204 No Content` is treated as a valid “no update” state.
- License keys are never stored in cache keys directly (hashes are used).
- UI elements (settings pages, admin notices, forms) remain the host plugin’s responsibility.

Development
-----------

[](#development)

### Code Quality

[](#code-quality)

Run `phpcs` to check coding standards:

```
composer lint
```

To automatically fix most coding standard issues:

```
composer fix
```

### Testing

[](#testing)

The library uses PHPUnit for testing. Run the tests with:

```
composer test
```

###  Health Score

42

—

FairBetter than 88% of packages

Maintenance91

Actively maintained with recent releases

Popularity13

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity45

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 ~3 days

Total

4

Last Release

49d ago

PHP version history (2 changes)v1.0.0PHP ^8.2

v1.2.0PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/744ed170b0dedcb63d4eee2a7db74cf480a9eb05543fecba1f791a118b2ea3e1?d=identicon)[jcore](/maintainers/jcore)

---

Top Contributors

[![foonly](https://avatars.githubusercontent.com/u/1481639?v=4)](https://github.com/foonly "foonly (28 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/jcodigital-jcore-update/health.svg)

```
[![Health](https://phpackages.com/badges/jcodigital-jcore-update/health.svg)](https://phpackages.com/packages/jcodigital-jcore-update)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M20](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k18](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

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