PHPackages                             ideologix/dlm-wp-simple-checker - 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. ideologix/dlm-wp-simple-checker

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

ideologix/dlm-wp-simple-checker
===============================

Simple License checker made for users that don't want to provide WordPress plugin updates through Digital License Manager and our package dlm-wp-updater.

14PHP

Since Mar 14Pushed 2y ago1 watchersCompare

[ Source](https://github.com/ideologix/dlm-wp-simple-checker)[ Packagist](https://packagist.org/packages/ideologix/dlm-wp-simple-checker)[ RSS](/packages/ideologix-dlm-wp-simple-checker/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Digital License Manager WordPress Simple Update Checker
-------------------------------------------------------

[](#digital-license-manager-wordpress-simple-update-checker)

WordPress simple license checker that utilizes the Digital License Manager's [REST API](https://docs.codeverve.com/digital-license-manager/rest-api/).

This package is inspired by [TheWebSolver/tws-license-manager-client](https://github.com/TheWebSolver/tws-license-manager-client).

*Note*: This license checker is standalone and shouldn't be used together with [ideologix/dlm-wp-updater](https://github.com/ideologix/dlm-wp-updater) which is for more advanced usage.

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

[](#requirements)

1. WordPress 4.0+
2. Digital License Manager, PRO is optional but recommended.

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

[](#installation)

The PHP package can be imported either with Composer:

```
composer require ideologix/dlm-wp-simple-checker
```

Integration
-----------

[](#integration)

The following example explains how to use the library within your PRO/Premium plugin.

1. First, install the package using `composer` in the ROOT of your plugin.
2. Create `init.php` (or name it as you wish) file in the ROOT of your plugin as follows:

```
if ( ! defined( 'ABSPATH' ) ) {
	die; // Prevent direct access.
}

/**
 * Require Digital License Manager simple license activation API.
 */
require_once dirname( __FILE__ ) . '/path/to/vendor/autoload.php';
if ( ! class_exists( 'YourPrefix_License_Checker' ) ) {
	class YourPrefix_License_Checker extends \IdeoLogix\DigitalLicenseManagerSimpleChecker\Main {
	}
}

/**
 * Returns the DLMs simple license checker instance
 * @return YourPrefix_License_Checker
 */
if ( ! function_exists( 'yourprefix_license_checker' ) ) {
	function yourprefix_license_checker() {
		static $checker;

		if ( ! $checker ) {
			$checker = new \Maspik_CFAS_License_Checker( [
				'name'            => 'YourPrefix - Plugin',
				'logo'            => trailingslashit( plugin_dir_url( __FILE__ ) ) . 'assets/logo.png',
				'prefix'          => 'yourprefix_',
				'context'         => 'plugin',
				'public_path'     => trailingslashit( dirname( __FILE__ ) ) . 'vendor/ideologix/dlm-wp-simple-checker/public/', // You can override this and set your own path if you want to customzie the views and the assets.
				'public_url'      => trailingslashit( plugin_dir_url( __FILE__ ) ) . 'vendor/ideologix/dlm-wp-simple-checker/public/', // You can override this and set your own path if you want to customzie the views and the assets.
				'consumer_key'    => 'ck_3fc0620008eb219e510b42d7a1164c7e0d28b2f1',
				'consumer_secret' => 'cs_1eef46aeae9ef30571491672fd14b9cfcaf50856',
				'api_url'         => 'http://digital-license-manager-enabled-site.com/wp-json/dlm/v1/',
				'menu'            => [
					'page_title' => 'License Activation',
					'menu_title' => 'License Activation',
					'parent_slug' => 'your-plugin-settings',
					'capaibility' => 'manage_options',
				]
			] );
		}

		return $checker;
	}
}

/**
 * Initialize it!
 */
yourprefix_license_checker();

/**
 *  @NOTES
 *
 * --- ADVANCED USAGE ---
 *
 *  1. To check if license is active
 *     if(yourprefix_license_checker()->license()->isLicenseValid())...
 *  2. To activate the current license
 *     yourprefix_license_checker()->license()->activate('License-key-goes-here')
 *  3. To deactivate the current license
 *     yourprefix_license_checker()->license()->deactivate()
 *  4. To remove the license completely (disables if not disabled)
 *     yourprefix_license_checker()->license()->deleteData()
 */
```

License
-------

[](#license)

```
  This is part of the "Digital License Manager" WordPress plugin.
  https://darkog.com/p/digital-license-manager/

  Copyright (C) 2020-2024  Darko Gjorgjijoski. All Rights Reserved.
  Copyright (C) 2020-2024  IDEOLOGIX MEDIA DOOEL. All Rights Reserved.

  Digital License Manager is free software; you can redistribute it
  and/or modify it under the terms of the GNU General Public License
  as published by the Free Software Foundation; either version 2
  of the License, or (at your option) any later version.

  Digital License Manager program is distributed in the hope that it
  will be useful,but WITHOUT ANY WARRANTY; without even the implied
  warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  See the GNU General Public License for more details.

  You should have received a copy of the GNU General Public License v3
  along with this program;

  If not, see: https://www.gnu.org/licenses/gpl-3.0.en.html

  Code written, maintained by Darko Gjorgjijoski (https://darkog.com)

```

###  Health Score

13

—

LowBetter than 1% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity19

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/092968da21d868077ffac225d195f167f19435d61409f8ec656136c6f3d6f197?d=identicon)[gdarko](/maintainers/gdarko)

---

Top Contributors

[![gdarko](https://avatars.githubusercontent.com/u/5760249?v=4)](https://github.com/gdarko "gdarko (8 commits)")

### Embed Badge

![Health badge](/badges/ideologix-dlm-wp-simple-checker/health.svg)

```
[![Health](https://phpackages.com/badges/ideologix-dlm-wp-simple-checker/health.svg)](https://phpackages.com/packages/ideologix-dlm-wp-simple-checker)
```

###  Alternatives

[velhron/dadata-bundle

DaData for Symfony

2076.6k](/packages/velhron-dadata-bundle)[phpcfdi/xml-cancelacion

Genera documentos de cancelación de CFDI firmados (XMLSEC)

1149.5k4](/packages/phpcfdi-xml-cancelacion)[pressbooks/pressbooks-aldine

Aldine is the default theme for the home page of Pressbooks networks. It is named for the Aldine Press, founded by Aldus Manutius in 1494, who is regarded by many as the world’s first publisher.

114.3k](/packages/pressbooks-pressbooks-aldine)

PHPackages © 2026

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