-
-
Notifications
You must be signed in to change notification settings - Fork 42
Get Report as an array
Harish Toshniwal edited this page Apr 6, 2017
·
3 revisions
- You might want to access the Decomposer Report in your code so that it could be passed to any third party services like Bugsnag, etc. or maybe you want to log it yourself somewhere if required.
- The
getReportArray()
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
getReportArray()
method as required.
$DecomposerStats = Decomposer::getReportArray();
- It returns a multi-dimensional associative array with 4 keys: Server Environment, Laravel Environment & Installed Packages & Extra stats(If you or a package in your app have added any) having the respective details as an associative array.
Next: Get Report as JSON