Download the PHP package charlieuki/receiptprinter without Composer
On this page you can find all versions of the php package charlieuki/receiptprinter. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download charlieuki/receiptprinter
More information about charlieuki/receiptprinter
Files in charlieuki/receiptprinter
Package receiptprinter
Short Description :description
License MIT
Homepage https://github.com/charlieuki/receiptprinter
Informations about the package receiptprinter
Laravel Receipt Printer
Simple Laravel package to integrate ESC/POS Print Driver for PHP.
Installation
Via Composer
Sample App
I have set up a simple app based on Laravel 7 to serve as a demo.
Usage
Execute the following command to publish the config used by this package:
Edit the config file located at config/receiptprinter.php
as follows:
- Set
connector_type
to:windows
if you are using Windows as your web server.cups
if you are using Linux or Mac as your web server.network
if you are using a network printer.
- Set
connector_descriptor
to:- the printer name if your
connector_type
is eitherwindows
orcups
- the IP address or Samba URI, e.g:
smb://192.168.0.5/PrinterName
if yourconnector_type
isnetwork
- the printer name if your
- Set
connector_port
to the open port for the printer, only if yourconnector_type
isnetwork
Include the library:
Then use any one of these two functions to send "print" command to the printer.
Example (Print Receipt)
Example (Print Request)
Changelog
Please see the changelog for more information on what has changed recently.
Contributing
Please see contributing.md for details and a todolist.
Problems
If you discover any issues, please post the details on the issue tracker.
Credits
- Mike42 for the awesome PHP ESC/POS Print Driver library
License
MIT. Please see the license file for more information.