PHP code example of mallardduck / prettier-php-runner
1. Go to this page and download the library: Download mallardduck/prettier-php-runner 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/ */
mallardduck / prettier-php-runner example snippets
\MallardDuck\PrettierPhp\PrettierHtml::format(
html: '<html><body><div><h1>Heading</h1></div></body></html>'
);
use Spatie\ShikiPhp\Prettier;
PrettierHtml::format(
'<html><body><div><h1>Heading</h1></div></body></html>'
);
bash
composer