Because Go has no usable PDF generator, and I need to generate PDFs for a school project, I am thinking of using a PHP microservice to do that. So this seems neat af

GitHub
GitHub - roadrunner-server/goridge: 🧙 High-performance PHP-to-Golang IPC/RPC bridge
🧙 High-performance PHP-to-Golang IPC/RPC bridge. Contribute to roadrunner-server/goridge development by creating an account on GitHub.
Just a dumb PHP microservice, no routes in fact, that accepts a JSON body. If I can use Roadrunner to run both my main Go app (htmx stack) and then call into PHP when needed, sounds super neato.
Ideas do be brewing. PHP was my first ever language and I still use it sometimes for scripting. If you have seen my fake-zap post, then you know. xD I used it's json_serialize() because it was much faster for me to type out than what I would have had to do on Node (consuming all of STDIN, and then JSON.stringify()). It is absolutely possible, but PHP and it's nature just made this significantly easier. A call to file_get_contents("php://stdin") is much faster than the JS equivalent... (in terms of typing, i mean.)