PHPackages                             magicoli/wp-package-updater-lib - 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. magicoli/wp-package-updater-lib

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

magicoli/wp-package-updater-lib
===============================

Composer package for wp-package-updater library.

v1.1.1(2y ago)2135↓100%AGPL-3.0-or-laterPHP

Since Jun 7Pushed 2y ago1 watchersCompare

[ Source](https://github.com/magicoli/wp-package-updater-lib)[ Packagist](https://packagist.org/packages/magicoli/wp-package-updater-lib)[ RSS](/packages/magicoli-wp-package-updater-lib/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (19)Used By (0)

WP Package Updater - composer-ready library.
============================================

[](#wp-package-updater---composer-ready-library)

This is a set of all needed libraries to include in a plugin, to get automatic updates from Anexandre Froger's [WP Plugin Update Server](https://github.com/froger-me/wp-plugin-update-server).

Requirements:

- WP Plugin Update Server must be installed and configured
- Your plugin must appear in WP Plugin Update Server packages list
- Composer must be configured (if not run `composer init --type=wordpress-plugin` from your plugin root folder)

Install from command-line:

```
# Install package with composer
composer require magicoli/wp-package-updater-lib
# Add library to lib/wp-package-updater-lib
php vendor/magicoli/wp-package-updater-lib/install.php
# You should run install.php again each time the package is updated
```

To keep library up to date with `composer update`, insert this in composer.json:

```
"scripts": {
  "post-update-cmd": [
    "php vendor/magicoli/wp-package-updater-lib/install.php"
  ]
}
```

Include the following in your main plugin file:

```
// Adjust with your plugin uddate server URL
$wppul_server = 'https://magiiic.com';
$wppul_licence_required = false; // optional, set to true if licence is set in WPPUS

// Use autoload to load library
require_once( __DIR__ . '/lib/package-updater.php' );
```

The `$wppul_server` variable will be unset by the library afterwards to prevent conflicts with any other plugin so it is not safe to use it for other purposes.

Original README
---------------

[](#original-readme)

### Description

[](#description)

Used to enable updates for plugins and themes distributed via WP Plugin Update Server.

### Requirements

[](#requirements)

The library must sit in a `lib` folder at the root of the plugin or theme directory.

Before deploying the plugin or theme, make sure to change the following value:

- `https://your-update-server.com` =&gt; The URL of the server where WP Plugin Update Server is installed.
- `$prefix_updater` =&gt; Change this variable's name with your plugin or theme prefix

### Code to include in main plugin file

[](#code-to-include-in-main-plugin-file)

#### Simple update

[](#simple-update)

```
require_once plugin_dir_path( __FILE__ ) . 'lib/wp-package-updater/class-wp-package-updater.php';

$prefix_updater = new WP_Package_Updater(
  'https://your-update-server.com',
  wp_normalize_path( __FILE__ ),
  wp_normalize_path( plugin_dir_path( __FILE__ ) ),
);
```

#### Update with license check

[](#update-with-license-check)

```
require_once plugin_dir_path( __FILE__ ) . 'lib/wp-package-updater/class-wp-package-updater.php';

$prefix_updater = new WP_Package_Updater(
  'https://your-update-server.com',
  wp_normalize_path( __FILE__ ),
  wp_normalize_path( plugin_dir_path( __FILE__ ) ),
  true
);
```

### Code to include in functions.php

[](#code-to-include-in-functionsphp)

#### Simple update

[](#simple-update-1)

```
require_once get_stylesheet_directory() . '/lib/wp-package-updater/class-wp-package-updater.php';

$prefix_updater = new WP_Package_Updater(
  'https://your-update-server.com',
  wp_normalize_path( __FILE__ ),
  get_stylesheet_directory(),
);
```

#### Update with license check

[](#update-with-license-check-1)

```
require_once get_stylesheet_directory() . '/lib/wp-package-updater/class-wp-package-updater.php';

$prefix_updater = new WP_Package_Updater(
  'https://your-update-server.com',
  wp_normalize_path( __FILE__ ),
  get_stylesheet_directory(),
  true
);
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

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

18

Last Release

1064d ago

Major Versions

v0.1.10 → v1.02023-06-09

### Community

Maintainers

![](https://www.gravatar.com/avatar/483a1b76001365f5fc14e42fda28cde69af374ac7d341ed3999664218bc16072?d=identicon)[magicoli](/maintainers/magicoli)

---

Top Contributors

[![magicoli](https://avatars.githubusercontent.com/u/1338897?v=4)](https://github.com/magicoli "magicoli (40 commits)")

### Embed Badge

![Health badge](/badges/magicoli-wp-package-updater-lib/health.svg)

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

###  Alternatives

[garveen/laravoole

Get 10x performance for Laravel on Swoole or Workerman

8834.9k](/packages/garveen-laravoole)[aneeskhan47/laravel-pagination-merge

Merge multiple laravel paginate instances

1823.4k](/packages/aneeskhan47-laravel-pagination-merge)

PHPackages © 2026

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