PHPackages                             heymehedi/edd-sl-plugin-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. heymehedi/edd-sl-plugin-updater

ActiveLibrary

heymehedi/edd-sl-plugin-updater
===============================

EDD Updates Handler for WordPress Plugins

v1.0.1(2y ago)04.4k↓56.7%GPL-2.0-or-laterPHPPHP &gt;=5.6.20

Since Jun 10Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/HeyMehedi/EDD-SL-Plugin-Updater)[ Packagist](https://packagist.org/packages/heymehedi/edd-sl-plugin-updater)[ RSS](/packages/heymehedi-edd-sl-plugin-updater/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)DependenciesVersions (3)Used By (0)

HeyMehedi EDD SL Plugin Updater
===============================

[](#heymehedi-edd-sl-plugin-updater)

This library should be used on add-ons or plugins sold on EDD. It handles the updates for plugins integrated with Easy Digital Downloads in WordPress sites.

Requirements
------------

[](#requirements)

This class can only be used with EDD v1.7 and later.

How to use it
-------------

[](#how-to-use-it)

### Installing

[](#installing)

Add as a requirement using composer:

```
$ composer require heymehedi/edd-sl-plugin-updater

```

Or add it manually to the composer.json file:

```
{
  "require": {
    "heymehedi/edd-sl-plugin-updater": "dev-master"
  }
}
```

### Loading and initializing

[](#loading-and-initializing)

**Usage 1:**

```
add_action('admin_init', 'init_updater');

function init_updater()
{
    $api_url         = 'https://loginmenow.com';  // The site for the EDD store.
    $plugin_file     = 'your-plugin/your-plugin.php';  // The version of your add-on/plugin.
    $current_version = '1.0.5';
    $product_id     = '3252'; // ID for the add-on/plugin on EDD.
    $author         = 'Your Name';

    // Initialize the library.
    $updater = new HeyMehedi\EDD_SL_Plugin_Updater(
        $api_url,
        $plugin_file,
        [
            'version' => $current_version,
            'license' => get_option( 'my_plugin_license' ),
            'item_id' => $product_id,
            'author'  => $author,
            'beta'    => false,
        ]
    );
}
```

**Usage 2:**

```
/**
 * Login Me Now Pro Updater.
 *
 * @package Login Me Now
 * @since 1.0.0
 * @version 1.0.0
 */

namespace Login_Me_Now_Pro;

use HeyMehedi\EDD_SL_Plugin_Updater;

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}

defined( 'ABSPATH' ) || exit;

/**
 * Class Updater
 *
 * @since 1.0.0
 */
class Updater {
	public $api_url;
	public $plugin_file;
	public $version;
	public $product_id;
	public $author;
	public $lic_key;

	public function __construct() {
		$this->api_url     = 'https://loginmenow.com';
		$this->plugin_file = LOGIN_ME_NOW_PRO_BASE_FILE;
		$this->version     = LOGIN_ME_NOW_PRO_VERSION;
		$this->product_id  = '1212';
		$this->author      = 'Login Me Now';
		$this->lic_key     = get_option( 'my_plugin_license' );

		add_action( 'admin_init', array( $this, 'init_updater' ) );
	}

	public function init_updater() {
		$updater = new EDD_SL_Plugin_Updater(
			$this->api_url,
			$this->plugin_file,
			array(
				'version' => $this->version,
				'license' => $this->lic_key,
				'item_id' => $this->product_id,
				'author'  => $this->author,
				'beta'    => false,
			)
		);
	}
}

new Updater();
```

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance56

Moderate activity, may be stable

Popularity24

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 92.3% 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 ~13 days

Total

2

Last Release

1061d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/43073560?v=4)[Mehedi Hasan ⚡️](/maintainers/HeyMehedi)[@HeyMehedi](https://github.com/HeyMehedi)

---

Top Contributors

[![HeyMehedi](https://avatars.githubusercontent.com/u/43073560?v=4)](https://github.com/HeyMehedi "HeyMehedi (12 commits)")[![Rahe](https://avatars.githubusercontent.com/u/1007502?v=4)](https://github.com/Rahe "Rahe (1 commits)")

---

Tags

wordpressupdatesedd

### Embed Badge

![Health badge](/badges/heymehedi-edd-sl-plugin-updater/health.svg)

```
[![Health](https://phpackages.com/badges/heymehedi-edd-sl-plugin-updater/health.svg)](https://phpackages.com/packages/heymehedi-edd-sl-plugin-updater)
```

PHPackages © 2026

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