Skip to content

How to validate customer licensing using PHP client #128

Closed Answered by r-brown
r-brown asked this question in Questions
Discussion options

You must be logged in to vote

To use NetLicensing PHP Client you need to add this library as dependency to your project.
For instance via, composer.json:

    "require": {
        "Labs64/NetLicensingClient-php": "~2.4.0",
    },

Recommended NetLicensing authentication option is: API Key (needed role for validate endpoint is Licensee). You can easily create an API Key via Management Console / Settings / API Access

Use your generated API Key number and Customer number in the PHP code snippet below:

const SECURITY_MODE = \NetLicensing\Constants::APIKEY_IDENTIFICATION;
const APIKEY = 'YOUR-API-KEY';
const LICENSEE = 'CUSTOMER-NUMBER';
try {
    $context = new \NetLicensing\Context();
    $context->setSecurityMode(SECURI…

Replies: 1 comment

Comment options

r-brown
Nov 19, 2020
Maintainer Author

You must be logged in to vote
0 replies
Answer selected by r-brown
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
1 participant
Converted from issue

This discussion was converted from issue #16 on October 30, 2023 06:14.