Created
March 5, 2020 04:06
-
-
Save parzibyte/d0ef1120f2e26b8c19c590695a11911f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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