zrrrzzt / docker-unoconv-webservice

Dockerfile to run unoconv as a webservice
MIT License
96 stars 35 forks source link

example using php cUrl #21

Closed robertzimmerman closed 5 years ago

robertzimmerman commented 5 years ago

would you have an example of using your service with PHP cUrl? I am having a lot of trouble getting it to work. normally getting a blank pdf file back.

zrrrzzt commented 5 years ago

I'm sorry. I have not used php in a very long time :-( If you are in an environment where you can test the cUrl example from the README you would be able to confirm that the service works as expected. If it does you know there's something in your code, if it doesn't I have to dig deeper.

Btw I just found this the other day: https://github.com/thecodingmachine/gotenberg I think they offer a PHP-client.

robertzimmerman commented 5 years ago

@zrrrzzt thank you for the reference. Looks like a good php-client.

joanfabregat commented 5 years ago

I wrote a simple PHP client for the API. It's available on GitHub and Packagist under the MIT license.

You can install the client using Composer:

composer require codeinc/unoconv-webservice-client