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_typeto:windowsif you are using Windows as your web server.cupsif you are using Linux or Mac as your web server.networkif you are using a network printer.
- Set
connector_descriptorto:- the printer name if your
connector_typeis eitherwindowsorcups - the IP address or Samba URI, e.g:
smb://192.168.0.5/PrinterNameif yourconnector_typeisnetwork
- the printer name if your
- Set
connector_portto the open port for the printer, only if yourconnector_typeisnetwork
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.