- Local time
- Sep 24, 2019
Hey everyone! Does anybody have experience using PHP to interact with a headless browser? I am hoping to improve the OpenGraph images both here and for another project. PHP GD is proving a little inflexible and unreliable.
I want to generate the images from HTML and then screenshot them, save them and serve them. I already have a fine system in place in the current one that knows it an image has already been generated and serves that instead.
I guess that PHP is far from optimal for this but it's what I know and have a server set-up to run so balancing that I think it is best. I have root access on server to install whatever.
I'm currently looking at
chrome-php (https://github.com/chrome-php/headless-chromium-php) but wondering if anybody knows of a better way to do this? Are there any alternative headless browsers better suited?