charlieuki / receipt-printer-example

Example usage of Laravel package to integrate ECS/POS Print Driver for PHP
24 stars 15 forks source link

Laravel Receipt Printer Example

Overview

This is a Laravel web app serving as an example to use the Laravel Receipt Printer package.

I have tested this app successfully in the following environment:

Usage

Follow these steps:

  1. Clone this repository into a directory on your local computer
  2. Open Terminal (macOS, Linux) or Git Bash (Windows)
  3. Use cd command to change directory into the cloned repository
  4. Use composer install command to install the dependencies
  5. Use php artisan serve command to run PHP built-in server
  6. Make sure that a receipt printer has been connected to your computer
  7. Change the config inside config/receiptprinter.php according to your own environment, e.g the connector_descriptor should be your printer name
  8. Open your web browser and point to: http://127.0.0.1/print/test
  9. A sample receipt should be printed on your receipt printer

About Laravel

Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel takes the pain out of development by easing common tasks used in many web projects, such as:

Laravel is accessible, powerful, and provides tools required for large, robust applications.

License

The Laravel framework is open-sourced software licensed under the MIT license.