php-lpr/examples/printers.php

13 lines
238 B
PHP
Raw Normal View History

2019-06-16 00:05:36 +00:00
<?php
require_once __DIR__."/../vendor/autoload.php";
use NoccyLabs\Lpr\PrinterList;
$printers = new PrinterList();
foreach ($printers as $printer=>$meta) {
printf("%s\n%s\n\n", $printer, json_encode($meta,JSON_PRETTY_PRINT));
}