recreate project
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
/* Demonstration of upside-down printing */
|
||||
require __DIR__ . '/../vendor/autoload.php';
|
||||
use Mike42\Escpos\Printer;
|
||||
use Mike42\Escpos\PrintConnectors\FilePrintConnector;
|
||||
|
||||
$connector = new FilePrintConnector("php://stdout");
|
||||
$printer = new Printer($connector);
|
||||
|
||||
// Most simple example
|
||||
$printer -> text("Hello\n");
|
||||
$printer -> setUpsideDown(true);
|
||||
$printer -> text("World\n");
|
||||
$printer -> cut();
|
||||
$printer -> close();
|
||||
|
||||
Reference in New Issue
Block a user