PHPackages                             closemarketing/wp-plugin-license-manager - 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. closemarketing/wp-plugin-license-manager

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

closemarketing/wp-plugin-license-manager
========================================

WordPress Plugin License Manager Library - A reusable library for managing WordPress plugin licenses with Enwikuna License Manager

1.2.1(5mo ago)01.1k↓25%[1 PRs](https://github.com/closemarketing/wp-plugin-license-manager/pulls)GPL-2.0-or-laterPHPPHP &gt;=7.4CI passing

Since Oct 30Pushed 2mo agoCompare

[ Source](https://github.com/closemarketing/wp-plugin-license-manager)[ Packagist](https://packagist.org/packages/closemarketing/wp-plugin-license-manager)[ RSS](/packages/closemarketing-wp-plugin-license-manager/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (7)Dependencies (7)Versions (12)Used By (0)

WordPress Plugin License Manager
================================

[](#wordpress-plugin-license-manager)

A reusable Composer library for managing WordPress plugin licenses with Enwikuna License Manager.

Features
--------

[](#features)

- ✅ Easy integration with any WordPress plugin
- ✅ License activation/deactivation
- ✅ Automatic plugin updates
- ✅ Configurable text domain for translations
- ✅ Flexible settings integration with customizable page and tabs
- ✅ Automatic settings UI generation with Settings class
- ✅ Improved license deactivation handling
- ✅ Enwikuna License Manager compatible
- ✅ WordPress Coding Standards compliant

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

[](#requirements)

- PHP 7.4 or higher
- WordPress 5.0 or higher
- Enwikuna License Manager (server-side)

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

[](#installation)

Install via Composer:

```
composer require closemarketing/wp-plugin-license-manager
```

Or manually add to your `composer.json`:

```
{
    "require": {
        "closemarketing/wp-plugin-license-manager": "@dev"
    },
    "repositories": [
        {
            "type": "path",
            "url": "../wp-plugin-license-manager"
        }
    ]
}
```

Usage
-----

[](#usage)

### Basic Integration

[](#basic-integration)

Add this code to your main plugin file:

```
