Skip to content

Get Report as JSON

Harish Toshniwal edited this page Apr 6, 2017 · 3 revisions
  • You might want to access the same Decomposer Report as JSON
  • The getReportJson() helper method has been introduced to solve the same requirement.
  • First use the Decomposer class at the top as follows:
use Lubusin\Decomposer\Decomposer;
  • Then use the getReportJson() method as required.
$DecomposerStats = Decomposer::getReportJson();
  • It returns the report as JSON

Example Output

dcjsonop


Next: Get Report as an Array

Clone this wiki locally