dev-master
9999999-devPHP library with batteries included for enhanced-diagnostics npm package
MIT
The Requires
- php ^7.0
The Development Requires
by Timo Reymann
PHP library with batteries included for enhanced-diagnostics npm package
PHP library with batteries included for enhanced-diagnostics npm package, (*1)
Install using composer: composer require timo-reymann/enhanced-diagnostics-php
, (*2)
Parse from json string, (*3)
$encrypted = EncryptedReport::parseFromInput($jsonString);
Parse from php array, (*4)
$encrypted = new EncryptedReport($parsedArray);
Parse from php://input, (*5)
$encrypted = EncryptedReport::parseFromPHPStdIn();
To get the values use the getter/setter, (*6)
// Get device info $infoList = $encrypted->getDeviceInfo(); // Get log lines $logLines = $encrypted->getLog(); // Get message of first log line $line = $encrypted->getLog()[0]->getMessage(); // and so on ...
PHP library with batteries included for enhanced-diagnostics npm package
MIT