LibreAuth Nut.exe Visit Website

PHP SDK

PHP 7.4+ with curl + sodium · LibreAuth native client

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

Setup Guide

require LibreAuth.php · set public key from /health · init then login

  1. Panel → Manage Applications → copy name + ownerid
  2. API URL: https://libreauth.nutexe.dev/api/1.3/
  3. Source: php/LibreAuth.php
  4. Ed25519 key: /health · Response Signing
  5. Test: Live API · Init docs

Install / Dependencies

Terminal
# require sdk/php/LibreAuth.php + sodium ext

Code Example

PHP
require 'LibreAuth.php';
$LibreAuthPublicKey = '58cd1baa23130577649b4f2ddb69f10e224fa761ed7cf7ac2e79c8f4c8a95b79';
$app = new LibreAuth('AppName', 'OWNER_ID_10', '1.0', 'https://libreauth.nutexe.dev/api/1.3/');
$app->init();
$app->login('user', 'pass', 'HWID');

Quick Test

Test
php sdk/php/example.php