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

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

oblak/wp-package-updater
========================

Simplifies the process of updating WordPress packages from custom repositories.

v3.0.1(12mo ago)21271[1 issues](https://github.com/x-wp/updater/issues)[1 PRs](https://github.com/x-wp/updater/pulls)GPL-2.0-onlyPHPPHP &gt;=8.0CI passing

Since Jul 16Pushed 5mo ago1 watchersCompare

[ Source](https://github.com/x-wp/updater)[ Packagist](https://packagist.org/packages/oblak/wp-package-updater)[ GitHub Sponsors](https://github.com/seebeen)[ RSS](/packages/oblak-wp-package-updater/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (10)Versions (14)Used By (0)

📦 WordPress package updater
===========================

[](#-wordpress-package-updater)

### Simplifies the process of updating WordPress packages from custom repositories.

[](#simplifies-the-process-of-updating-wordpress-packages-from-custom-repositories)

[![Packagist Version](https://camo.githubusercontent.com/4f5157f78c42b65de45781b0d2962322f92d38dd0301d20c188cf3c436a401c4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6f626c616b2f77702d7061636b6167652d75706461746572)](https://packagist.org/packages/oblak/wp-package-updater)[![Packagist PHP Version](https://camo.githubusercontent.com/ce89444d3712971410dabac07816eeffc0c2d5575e079b869ca6fd263b42de99/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646570656e64656e63792d762f6f626c616b2f77702d7061636b6167652d757064617465722f706870)](https://camo.githubusercontent.com/ce89444d3712971410dabac07816eeffc0c2d5575e079b869ca6fd263b42de99/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646570656e64656e63792d762f6f626c616b2f77702d7061636b6167652d757064617465722f706870)[![semantic-release: angular](https://camo.githubusercontent.com/9cdd34ac7322a84f2cf0ff00d590f5cc32229560a89e898aa2c5a5eeecbd5dfc/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f73656d616e7469632d2d72656c656173652d616e67756c61722d6531303037393f6c6f676f3d73656d616e7469632d72656c65617365)](https://github.com/semantic-release/semantic-release)

[![Code Climate maintainability](https://camo.githubusercontent.com/77db75a81e1975f1f72a2580291e4b0e2f3a7c78c304622d46d951faf873f762/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636c696d6174652f6d61696e7461696e6162696c6974792f6f626c616b73747564696f2f77702d7061636b6167652d75706461746572)](https://camo.githubusercontent.com/77db75a81e1975f1f72a2580291e4b0e2f3a7c78c304622d46d951faf873f762/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636c696d6174652f6d61696e7461696e6162696c6974792f6f626c616b73747564696f2f77702d7061636b6167652d75706461746572)[![Release](https://github.com/oblakstudio/wp-package-updater/actions/workflows/release.yml/badge.svg)](https://github.com/oblakstudio/wp-package-updater/actions/workflows/release.yml)

[![GitHub](https://camo.githubusercontent.com/1a549e0158b541e5258900954cf68f55bf590ed7d0a0d00f016fd9089f92d6d6/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6f626c616b73747564696f2f77702d7061636b6167652d75706461746572)](https://camo.githubusercontent.com/1a549e0158b541e5258900954cf68f55bf590ed7d0a0d00f016fd9089f92d6d6/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6f626c616b73747564696f2f77702d7061636b6167652d75706461746572)[![Packagist Downloads](https://camo.githubusercontent.com/bab152e64e581ffc9f15c04ba925a05b1c840aaff53392aa574e9e49ced67377/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f6f626c616b2f77702d7061636b6167652d75706461746572)](https://camo.githubusercontent.com/bab152e64e581ffc9f15c04ba925a05b1c840aaff53392aa574e9e49ced67377/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f6f626c616b2f77702d7061636b6167652d75706461746572)

Highlights
----------

[](#highlights)

- Standardizes the process of updating plugins / themes from custom repositories.
- Fully integrates with Plugin / theme info API.
- Easily extendable / customizable

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

[](#installation)

We officially support installing via composer only

### Via composer

[](#via-composer)

```
composer require oblak/wp-package-updater
```

Basic Usage
-----------

[](#basic-usage)

`Plugin_Updater` and `Theme_Updater` are the main **abstract** classes of the package, and they need to be extended in order to create an updater class. The class is responsible for registering the plugin / theme update hooks, and for updating the plugin / theme.

At minimum you need to implement the `get_update_url()` method, which is responsible for returning the update info URL.

### 1. Define your updater class

[](#1-define-your-updater-class)

```
