Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created March 5, 2020 04:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/d0ef1120f2e26b8c19c590695a11911f to your computer and use it in GitHub Desktop.
Save parzibyte/d0ef1120f2e26b8c19c590695a11911f to your computer and use it in GitHub Desktop.
<?php
$nombreImpresora = "POS-58";
$connector = new WindowsPrintConnector($nombreImpresora);
$impresora = new Printer($connector);
$impresora->setJustification(Printer::JUSTIFY_CENTER);
$impresora->setTextSize(2, 2);
$impresora->text("Imprimiendo\n");
$impresora->text("ticket\n");
$impresora->text("desde\n");
$impresora->text("Laravel\n");
$impresora->setTextSize(1, 1);
$impresora->text("https://parzibyte.me");
$impresora->feed(5);
$impresora->close();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment