PHPackages                             duckdev/freemius-plugin-licensing - 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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. duckdev/freemius-plugin-licensing

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

duckdev/freemius-plugin-licensing
=================================

Lite version of the Freemius SDK for managing plugin licensing and updates using Freemius APIs, specifically developed for use with Duck Dev plugins.

1.0.0(6mo ago)29GPL-2.0+PHPPHP &gt;=7.4

Since Aug 3Pushed 6mo agoCompare

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

READMEChangelog (5)DependenciesVersions (7)Used By (0)

Freemius Plugin Licensing
=========================

[](#freemius-plugin-licensing)

This is a lite version of the main Freemius SDK, specifically developed for use in Duck Dev WordPress plugins. This library focuses exclusively on managing plugin license activation, deactivation, and updates. It does not provide any user interface, so your plugin will need to create its own UI and use this library to handle the logic.

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

[](#requirements)

- PHP version 7.4 or higher.
- WordPress 5.0+

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

[](#installation)

This library should be installed and included in your WordPress plugin using Composer.

```
composer require duckdev/freemius-plugin-licensing
```

Usage
-----

[](#usage)

### Initialization

[](#initialization)

Initialize the Freemius SDK by calling the static `DuckDev\Freemius\Freemius::get_instance()` method with your plugin's details.

```
// Assuming Composer's autoload.php has been included.
$freemius = DuckDev\Freemius\Freemius::get_instance(
    12345, // Your Freemius product ID.
    array(
        'slug' => 'loggedin', // Your plugin's unique Freemius slug.
        'main_file'  => LOGGEDIN_FILE, // The path to your plugin's main file.
        'public_key' => 'pk_XXXXXXXXXXXXXXXXX', // Your plugin's public key.
    )
);
```

### License Activation

[](#license-activation)

To activate a license, call the `activate()` method on the `license()` object with the user's license key.

```
$freemius->license()->activate( 'XXXX-XXXX-XXXX' );
```

### License Deactivation

[](#license-deactivation)

To deactivate a license, simply call the `deactivate()` method.

```
$freemius->license()->deactivate();
```

### Updates

[](#updates)

The library will automatically handle plugin updates as long as a valid license is active. No additional code is required to check for and apply updates.

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance67

Regular maintenance activity

Popularity8

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~24 days

Total

5

Last Release

191d ago

### Community

Maintainers

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

---

Top Contributors

[![Joel-James](https://avatars.githubusercontent.com/u/7510463?v=4)](https://github.com/Joel-James "Joel-James (26 commits)")

---

Tags

freemiuslicense-managementpluginwordpresswordpress-pluginupdatespluginsfreemiuslicensing

### Embed Badge

![Health badge](/badges/duckdev-freemius-plugin-licensing/health.svg)

```
[![Health](https://phpackages.com/badges/duckdev-freemius-plugin-licensing/health.svg)](https://phpackages.com/packages/duckdev-freemius-plugin-licensing)
```

###  Alternatives

[gesdinet/jwt-refresh-token-bundle

Implements a refresh token system over Json Web Tokens in Symfony

70516.4M35](/packages/gesdinet-jwt-refresh-token-bundle)[illuminate/auth

The Illuminate Auth package.

9327.3M1.0k](/packages/illuminate-auth)[beatswitch/lock

A flexible, driver based Acl package for PHP 5.4+

870304.7k2](/packages/beatswitch-lock)[amocrm/amocrm-api-library

amoCRM API Client

182728.5k6](/packages/amocrm-amocrm-api-library)[vonage/jwt

A standalone package for creating JWTs for Vonage APIs

424.1M4](/packages/vonage-jwt)[visanduma/nova-two-factor

Nova Two Factor Authentication

56621.3k](/packages/visanduma-nova-two-factor)

PHPackages © 2026

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