forked from rawilk/laravel-printing
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprinting.php
85 lines (76 loc) · 2.29 KB
/
printing.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<?php
declare(strict_types=1);
return [
/*
|--------------------------------------------------------------------------
| Driver
|--------------------------------------------------------------------------
|
| Supported: `printnode`, `cups`
|
*/
'driver' => env('PRINTING_DRIVER', 'printnode'),
/*
|--------------------------------------------------------------------------
| Drivers
|--------------------------------------------------------------------------
|
| Configuration for each driver.
|
*/
'drivers' => [
'printnode' => [
'key' => env('PRINT_NODE_API_KEY'),
],
'cups' => [
'ip' => env('CUPS_SERVER_IP'),
'username' => env('CUPS_SERVER_USERNAME'),
'password' => env('CUPS_SERVER_PASSWORD'),
'port' => env('CUPS_SERVER_PORT', 631),
'secure' => env('CUPS_SERVER_SECURE', false),
],
/*
* Add your custom drivers here:
*
* 'custom' => [
* 'driver' => 'custom_driver',
* // other config for your custom driver
* ],
*/
],
/*
|--------------------------------------------------------------------------
| Default Printer Id
|--------------------------------------------------------------------------
|
| If you know the id of a default printer you want to use, enter it here.
|
*/
'default_printer_id' => null,
/*
|--------------------------------------------------------------------------
| Receipt Printer Options
|--------------------------------------------------------------------------
|
*/
'receipts' => [
/*
* How many characters fit across a single line on the receipt paper.
* Adjust according to your needs.
*/
'line_character_length' => 45,
/*
* The width of the print area in dots.
* Adjust according to your needs.
*/
'print_width' => 550,
/*
* The height (in dots) barcodes should be printed normally.
*/
'barcode_height' => 64,
/*
* The width (magnification) each barcode should be printed in normally.
*/
'barcode_width' => 2,
],
];