2017 © Pedro Peláez
 

library enhanced-diagnostics-php

PHP library with batteries included for enhanced-diagnostics npm package

image

timo-reymann/enhanced-diagnostics-php

PHP library with batteries included for enhanced-diagnostics npm package

  • Monday, July 23, 2018
  • by timo-reymann
  • Repository
  • 0 Watchers
  • 0 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

enhanced-diagnostics-php

What is this?

PHP library with batteries included for enhanced-diagnostics npm package, (*1)

Usage

Installation

Install using composer: composer require timo-reymann/enhanced-diagnostics-php, (*2)

Coding

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 ...

The Versions

23/07 2018

dev-master

9999999-dev

PHP library with batteries included for enhanced-diagnostics npm package

  Sources   Download

MIT

The Requires

  • php ^7.0

 

The Development Requires

by Timo Reymann