LibreAuth

PHP SDK

PHP 7.4+ with curl + sodium · LibreAuth native client · Protocol v2 available (Enterprise)

PHP PHP 7.4+ with curl + sodium
POST https://libreauth.nutexe.dev/api/1.3/

Setup Guide

LibreAuthV2.php · Authority.php · SessionGate.php · OpsBridge after Check · Boot/OnInit/MarkLicensed · ext-sodium · /api/v2/

  1. Credentials: name + ownerid (10 characters)
  2. API URL: https://libreauth.nutexe.dev/api/1.3/
  3. Source: php/LibreAuth.php
  4. Ed25519 key: from init → Response Signing
  5. Test: Live API · Init docs

Install / Dependencies

Terminal
# 1.x: LibreAuth.php + sodium
# v2 Enterprise: LibreAuthV2.php → /api/v2/

Code Example

PHP
require 'SessionGate.php';
SessionGate::Boot(19079);
$app = new LibreAuthV2('AppName', 'OWNER_ID_10', 'https://host/api/v2/');
SessionGate::OnInit($app->Init());
$app->License($key, $hwid);
SessionGate::MarkLicensed();

Quick Test

Test
php sdk/php/example.php

Protocol v2 (Enterprise)

INFO
Requires Enterprise plan. Endpoint https://libreauth.nutexe.dev/api/v2/. Guide: API Protocol v2.

Source: php/LibreAuthV2.php

PHP · v2
require 'SessionGate.php';
SessionGate::Boot(19079);
$app = new LibreAuthV2('AppName', 'OWNER_ID_10', 'https://host/api/v2/');
SessionGate::OnInit($app->Init());
$app->License($key, $hwid);
SessionGate::MarkLicensed();