The League of Extraordinary Packages

Our Packages:

Presented by The League of Extraordinary Packages

Getting Started

Styling

Arguments

Terminal Objects

JSON

The json method outputs pretty-printed JSON to the terminal:

$climate->json([
  'name' => 'Gary',
  'age'  => 52,
  'job'  => 'Engineer',
]);
{
    "name": "Gary",
    "age": 52,
    "job": "Engineer"
}