ok
Direktori : /home2/selectio/www/mm-tailor-billing/vendor/mike42/escpos-php/example/interface/ |
Current File : /home2/selectio/www/mm-tailor-billing/vendor/mike42/escpos-php/example/interface/cups.php |
<?php /* Change to the correct path if you copy this example! */ require __DIR__ . '/../../autoload.php'; use Mike42\Escpos\Printer; use Mike42\Escpos\PrintConnectors\CupsPrintConnector; try { $connector = new CupsPrintConnector("EPSON_TM-T20"); /* Print a "Hello world" receipt" */ $printer = new Printer($connector); $printer -> text("Hello World!\n"); $printer -> cut(); /* Close printer */ $printer -> close(); } catch (Exception $e) { echo "Couldn't print to this printer: " . $e -> getMessage() . "\n"; }