apilayer / html2pdf.it

Webservice for generating pdfs from html
html2pdf.it
548 stars 157 forks source link

Composer support #44

Closed ogrosko closed 8 years ago

ogrosko commented 8 years ago

Is it possible to add composer support? Also add it to https://packagist.org/

edm00se commented 8 years ago

This is a node application which is not an npm compatible module, and as such is meant to be installed and run stand-alone. It does not seem to be something which should be registered in a PHP package repository. Node and any PHP processor are entirely separate runtimes with their own dependency mechanisms.

If (which I'm not sure is very likely) this application were to ever be refactored into an npm module (as with #38), you could write a wrapper to load it as a script resource from unpkg.com (formerly knownas npm cdn), though that would just be wrapping an HTML <script> tag.