PHPackages                             automagicwp/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. automagicwp/updater

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

automagicwp/updater
===================

A simple and lightweight package to update your WordPress plugins from AutomagicWP.

v3.0.0(2mo ago)030↓50%GPL-3.0-or-laterPHPPHP ^8.0

Since Mar 29Pushed 1mo agoCompare

[ Source](https://github.com/automagicwp/updater)[ Packagist](https://packagist.org/packages/automagicwp/updater)[ Docs](https://automagicwp.com)[ RSS](/packages/automagicwp-updater/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (3)Versions (12)Used By (0)

WordPress Plugin Updater
------------------------

[](#wordpress-plugin-updater)

A simple and lightweight updater for WordPress plugins hosted on [AutomagicWP](https://www.automagicwp.com). 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
--------------------

[](#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
------------

[](#installation)

### Via Composer

[](#via-composer)

```
composer require automagicwp/updater
```

### Manual

[](#manual)

Copy the file in `src/` into your plugin and require it:

```
require_once 'path/to/PluginUpdater.php';
```

Usage
-----

[](#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:

```
