Added printer enumeration
This commit is contained in:
12
examples/printers.php
Normal file
12
examples/printers.php
Normal file
@ -0,0 +1,12 @@
|
||||
<?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));
|
||||
}
|
||||
|
Reference in New Issue
Block a user