Download the PHP package closemarketing/wp-plugin-license-manager without Composer

On this page you can find all versions of the php package closemarketing/wp-plugin-license-manager. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package wp-plugin-license-manager

WordPress Plugin License Manager

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

Features

Requirements

Installation

Install via Composer:

Or manually add to your composer.json:

Usage

Basic Integration

Add this code to your main plugin file:

Using the Settings Class (Recommended)

The Settings class provides automatic UI generation and form handling. This is the easiest way to integrate license management:

Settings Class Options

The Settings class accepts the following options:

Option Type Default Description
title string 'License Management' Title displayed in the license card
description string 'Manage your license...' Description text
plugin_name string Auto from License Plugin name for display
purchase_url string 'https://close.technology/' URL to purchase page
renew_url string 'https://close.technology/my-account/' URL to renew license
benefits array Default list Array of benefit strings
settings_page string 'connect_ecommerce' Settings page slug where form is submitted
default_tab string '' Default tab for redirects after form submission
tab_param string 'tab' URL parameter name for tabs

Custom Settings Page Integration

If you want to handle the license UI yourself, you can still use the License class without the Settings class:

Then in your settings page, create a form that submits to options.php with:

Configuration Options

Option Type Required Default Description
api_url string Yes - Your Enwikuna License Manager URL
rest_api_key string Yes - REST API Consumer Key (ck_xxx)
rest_api_secret string Yes - REST API Consumer Secret (cs_xxx)
product_uuid string Yes - Product UUID from Enwikuna
file string Yes - Main plugin file path (__FILE__)
version string Yes - Plugin version
slug string Yes - Plugin slug (used for option keys)
name string Yes - Plugin name (display)
text_domain string No 'default' Text domain for translations
plugin_slug string No Same as slug Plugin slug for updates
plugin_name string No Auto-generated Plugin basename
settings_page string No {slug}_settings Settings page slug
settings_tabs string No {slug}_settings_tabs Action hook for tabs
settings_content string No {slug}_settings_tabs_content Action hook for content
option_group string No {slug}_license Settings option group
settings_section string No {slug}_settings_admin_license Settings section ID
capabilities string No 'manage_options' Required user capability

Enwikuna License Manager Setup

Server Requirements

  1. Install Enwikuna License Manager on your store
  2. Create a product with a UUID
  3. Create REST API credentials:
    • Go to Enwikuna License Manager → Settings → REST API
    • Click Add Key
    • Set Permission to Read/Write
    • Enable routes: 104, 106, 107 (for licenses) and 301-304 (for updates)
    • Copy the Consumer Key and Consumer Secret

Required Routes

Route Description
104 Validate License
106 Activate License
107 Deactivate License
301-304 Release/Update info

Public Methods

License Class Methods

is_license_active()

Check if the license is currently active:

get_api_key_status( $live = false )

Get license status:

get_option_key( $key )

Get the full option key with slug prefix:

get_option_value( $key )

Get an option value:

validate_license( $input )

Validate and process license activation/deactivation:

Settings Class Methods

render()

Render the complete license settings UI:

The Settings class automatically:

Database Options

The library creates the following options in the WordPress database:

Replace {slug} with your plugin slug.

Changelog

1.2.2 2026-04-30

1.2.1

1.2.0

1.1.1-1.1.2

1.1.0

1.0.1

1.0.0

Important: Library vs Application

🔔 This is a LIBRARY, not an application

  • DO NOT commit composer.lock
  • DO use composer update in CI/CD
  • 📖 Read Composer Lock Policy for details

This ensures compatibility across PHP 7.4 to 8.3 by allowing each PHP version to resolve its own compatible dependencies.

Development

Running Tests

This library includes PHPUnit tests to ensure code quality and compatibility across PHP versions 7.4 to 8.3.

Setup Test Environment

  1. Install development dependencies:

  2. Install WordPress test suite:

This will set up WordPress and its test suite in your system's temporary directory.

Run Tests

Continuous Integration

Tests run automatically via GitHub Actions on:

Important: This is a library, so composer.lock is intentionally not versioned. Each PHP version will resolve dependencies appropriately during CI/CD, ensuring compatibility with older PHP versions. See Composer Lock Policy for detailed explanation.

Code Quality

The library uses:

Contributing Guidelines

  1. Follow WordPress Coding Standards
  2. Write tests for new features
  3. Ensure all tests pass before submitting PR
  4. Update documentation as needed
  5. Test with multiple PHP versions (7.4, 8.1, 8.2, 8.3)

Support

For support, please visit:

License

GPL-2.0-or-later

Credits

Developed by Close Marketing

Author: David Perez [email protected]


All versions of wp-plugin-license-manager with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package closemarketing/wp-plugin-license-manager contains the following files

Loading the files please wait ...