mike42 / escpos-php

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

Example solution to print from the cloud and use other hardware #988

Open andreubisquerra opened 4 years ago

andreubisquerra commented 4 years ago

I have been working with the great mike42 library for a long time. Although for me one of the things that is most needed is printing from the cloud, select printers easily with a drop-down and use other hardware such as scales. In this section there are a lot of people asking about print from the cloud and there are some solutions but I think is not easy. I want to show my TakePOS connector project. I hope it can help to other people.

screenshot

Muraveiko commented 3 years ago

https://github.com/andreubisquerra/TakePOS-connector-PHP/blob/master/index.php#L54 54-58 Are you really ?

andreubisquerra commented 3 years ago

@Muraveiko I think so. I want improve it and save it in a json file, but the code is working. What do not you like?

Muraveiko commented 3 years ago

This is a security hole. Anyone can modify php.ini

andreubisquerra commented 3 years ago

This connector it is running locally and is not accessible from the Internet. I think it is not a big security problem. However I will improve it! Thank you @Muraveiko