1. Go to this page and download the library: Download andrey-helldar/pretty-array library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
use DragonCode\PrettyArray\Services\Formatter;
$service = Formatter::make();
return $service->raw($array);
use DragonCode\PrettyArray\Services\Formatter;
$service = Formatter::make();
$service->setKeyAsString();
return $service->raw($array);
use DragonCode\PrettyArray\Services\Formatter;
$service = Formatter::make();
$service->setEqualsAlign();
return $service->raw($array);
use DragonCode\PrettyArray\Services\Formatter;
$service = Formatter::make();
$service->setKeyAsString();
$service->setEqualsAlign();
return $service->raw($array);
use DragonCode\PrettyArray\Services\Formatter;
$service = Formatter::make();
$service->setSimple();
return $service->raw($array);
use DragonCode\Contracts\Pretty\Arr\Caseable;
use DragonCode\PrettyArray\Services\Formatter;
$service = Formatter::make();
$service->setCase(Caseable::PASCAL_CASE);
return $service->raw($array);
use DragonCode\PrettyArray\Services\File;
use DragonCode\PrettyArray\Services\Formatter;
$service = Formatter::make();
$formatted = $service->raw($array);
File::make($formatted)
->store('foo.php');