mike42 / escpos-php

PHP library for printing to ESC/POS-compatible thermal and impact printers
Other
2.54k stars 863 forks source link

how to use escpos-php in laravel #866

Open simirfan opened 4 years ago

simirfan commented 4 years ago

thank you for the program you developed. I want to use this system in my laravel project. Is something like this possible?

simirfan commented 4 years ago

Meanwhile, the program worked successfully on my sII-rp-d10 thermal printer

mike42 commented 4 years ago

Yes this is possible.

We don't provide any Laravel-specific documentation, but this library ships as a composer dependency. I believe it's as simple as running composer require mike42/escpos-php in the root of your project, and then using use Mike42\Escpos\Printer; somewhere in your own code.

See also the Composer section in the README.

simirfan commented 4 years ago

thank you mike. I was able to successfully run the codes in my laravel project.

gilson-reis commented 4 years ago

Simirfan Can you share how you implemented mike42/escpos-php in your laravel project? Thanks