PHP SDK
PHP 7.4+ with curl + sodium · LibreAuth native client
PHP
PHP 7.4+ with curl + sodium
Setup Guide
require LibreAuth.php · set public key from /health · init then login
- Panel → Manage Applications → copy name + ownerid
- API URL:
https://libreauth.nutexe.dev/api/1.3/ - Source:
php/LibreAuth.php - Ed25519 key: /health · Response Signing
- 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