PHPackages                             arraypress/lemon-squeezy-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. arraypress/lemon-squeezy-updater

ActiveLibrary

arraypress/lemon-squeezy-updater
================================

A WordPress plugin library for integrating Lemon Squeezy license management and updater capabilities, facilitating seamless activation, deactivation, and update checks for plugins.

10184PHP

Since Mar 5Pushed 1y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Lemon Squeezy WordPress Plugin Updater and License Manager
==========================================================

[](#lemon-squeezy-wordpress-plugin-updater-and-license-manager)

This library seamlessly integrates with WordPress plugins, adding a simple yet powerful licensing field directly into the WordPress plugins list. It enables effortless activation, deactivation, and management of plugin licenses through AJAX for a streamlined user experience. With just one line of code, this functionality can be added to any WordPress plugin, facilitating license validations against `product_id`, `store_id`, and `variation_id` to ensure legitimacy before activation. Additionally, it supports an optional renewal URL feature, guiding users to repurchase when licenses expire.

[![Alt text](/assets/preview.webp "Preview Video")](/assets/preview.webp)

**Key Features:**

- **License Activation and Validation:** Simplifies the process of activating and validating license keys, ensuring that users are authorized to use the plugin. Validates against product\_id, store\_id, and variation\_ids for enhanced security.
- **Seamless Updates:** Automates the checking for plugin updates and manages the update process, ensuring plugins remain up-to-date effortlessly.
- **Easy Integration:** Designed for high compatibility with various WordPress environments, it integrates smoothly into any plugin with minimal effort.
- **Secure API Communication:** Utilizes secure API calls for communication with [Lemon Squeezy](https://lemonsqueezy.com) for license management and update repositories, ensuring data protection.
- **Streamlined User Experience:** Leverages AJAX for real-time license operations, providing a seamless experience without page reloads.
- **Renewal URL Support:** Offers an optional renewal URL for expired licenses, directing users to repurchase, thus maintaining continuity and support.

Leverage the Lemon Squeezy WordPress Plugin Updater and License Manager to ensure your plugins are efficiently managed, securely licensed, and always up to date.

Minimum Requirements
--------------------

[](#minimum-requirements)

- **PHP:** 7.4 or later
- **WordPress:** 6.4.3 or later

**Important: The [Lemon Squeezy - Better Endpoints](https://github.com/arraypress/lemon-squeezy-better-endpoints)plugin must be installed and active on your website to use this library.**

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

[](#installation)

To integrate the library into your WordPress plugin, use Composer:

```
composer require arraypress/lemon-squeezy-updater
```

### Including the Library in Your Plugin

[](#including-the-library-in-your-plugin)

Include the Composer autoloader in your plugin to access the library functionalities:

```
require_once __DIR__ . '/vendor/autoload.php';
```

### Example Integration

[](#example-integration)

```
use ArrayPress\LemonSqueezy\Updater;

// Initialize the updater with your Lemon Squeezy store details
$updater = new Updater(
	__FILE__,
	'https://example.com/wp-json/lsq/v1',
	'1.0.0', // Optional. Leave empty to use the WordPress plugin version number
	'store_id', // Optional but recommended. Your Lemon Squeezy Store ID (12345)
	'product_id', // Optional but recommended. Your Lemon Squeezy Product ID (12345)
	'variation_id', // Optional. Your Lemon Squeezy Product Variation ID (12345)
	'https://example.com/my-plugin-page' // Optional. Expiration Renewal URL
);

if ( ! $updater->is_license_activated() ) {
 // Disable functionality in your plugin if not active
}
```

Contributions
-------------

[](#contributions)

Contributions to improve the library are welcome. Please submit pull requests or create issues on GitHub for any bugs or feature suggestions.

License
-------

[](#license)

This library is licensed under the GPL-2.0-or-later. It is free to use and modify according to the terms of the GNU General Public License.

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance26

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity19

Early-stage or recently created project

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/cd6eb8aff0903d87eb674d1ba3c5f3653899c0d7661504eb0deb7798ed86b643?d=identicon)[arraypress](/maintainers/arraypress)

---

Tags

wordpress-developmentwordpress-librarywordpress-plugin

### Embed Badge

![Health badge](/badges/arraypress-lemon-squeezy-updater/health.svg)

```
[![Health](https://phpackages.com/badges/arraypress-lemon-squeezy-updater/health.svg)](https://phpackages.com/packages/arraypress-lemon-squeezy-updater)
```

PHPackages © 2026

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