PHPackages                             honemo/wp-github-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. honemo/wp-github-updater

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

honemo/wp-github-updater
========================

A WordPress library to update plugins from GitHub repositories.

v1.0.0(3mo ago)027↓90%PHP

Since Apr 1Pushed 3mo agoCompare

[ Source](https://github.com/Honemo/wp-github-updater)[ Packagist](https://packagist.org/packages/honemo/wp-github-updater)[ RSS](/packages/honemo-wp-github-updater/feed)WikiDiscussions main Synced 4w ago

READMEChangelog (1)Dependencies (11)Versions (2)Used By (0)

WP GitHub Updater
=================

[](#wp-github-updater)

[![PHP Version](https://camo.githubusercontent.com/7404ac2849f95f99ace60c4b949c4e57e3188dfc0d5df7a913378138ac571fb6/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344372e342d626c7565)](https://www.php.net/)[![WordPress](https://camo.githubusercontent.com/49a03853eb9870f51d757cddbd28e30b59e09e736cab3cd141828c15637d69cd/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f776f726470726573732d253345253344362e302d626c7565)](https://wordpress.org/)[![License](https://camo.githubusercontent.com/79e78a0c64fb81bf2dee2c55974ad9018c19c8d2b038383ae1c98429030a6e53/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d47504c2d2d332e302d677265656e)](LICENSE)

A modern PHP library to automatically update WordPress plugins from public or private GitHub repositories.

✨ Features
----------

[](#-features)

- 🔒 **Secure**: Multiple token sources support (wp-config, environment variables, WP options)
- 🏷️ **Flexible**: Support for tags with or without `v` prefix (v1.0.0 or 1.0.0)
- 🎯 **Modern**: Strict PHP 8 typing, complete PHPDoc, fully tested
- ✅ **Tested**: Complete PHPUnit test suite with 15 tests
- 📦 **Zero config**: Works directly with public repositories, no token needed
- 🔐 **Private repos**: Full support with GitHub authentication
- 🌐 **URL parsing**: Accepts multiple GitHub URL formats (HTTPS, Git, SSH)
- 🔄 **Smart caching**: Respects WordPress transients to avoid API rate limits
- 🛡️ **Error handling**: Graceful degradation if GitHub API is unavailable
- 📝 **Standards compliant**: Follows WordPress Coding Standards and PSR-12

📋 Requirements
--------------

[](#-requirements)

- PHP 7.4 or higher
- WordPress 6.0 or higher
- Composer

🚀 Installation
--------------

[](#-installation)

```
composer require honemo/wp-github-updater
```

📖 Usage
-------

[](#-usage)

### Basic usage (public repository)

[](#basic-usage-public-repository)

```
