robgridley / zebra

PHP ZPL builder, image conversion and a basic client for network-connected Zebra label printers.
MIT License
215 stars 54 forks source link

Extension of available raw printing mechanisms #12

Closed mike42 closed 6 years ago

mike42 commented 6 years ago

This library currently performs raw printing via a network socket (in Client.php), but not all printers have an Ethernet card.

I develop escpos-php, which is similar to this library, but outputs a different protocol. That project has accumulated a few different PrintConnectors over the years, which wrap different raw printing mechanisms so that they can be used from PHP.

We both use the MIT license, composer for dependency management, and we both need to be able to deliver raw data to printers. I think it would be a positive if we combine our raw printing code and share a dependency.

If I create a new project for PHP raw printing, would you be open to reviewing a pull request which changes zebra to use it?

The specific code changes I would send here would be:

And the benefit would be:

robgridley commented 6 years ago

Hi, Mike.

I'm not sure how I missed this issue. Sorry about that.

I don't have a problem working with you to support your library, but I won't be eliminating my Client or CommunicationException classes. I wrote this library for a specific purpose, and it is used across several of my own projects.

Let me know how you would like to proceed.