How to get screenshot of website using php?

Good day, Dear GURU!
Tell me how a screen of the first screen to do so programmatically when you enter url? Here on our site .
Thanks in advance!
June 26th 19 at 13:57
4 answers
June 26th 19 at 13:59
As you said put a console browser on a vps or a LAN.
I would choose the phantomjs here is an example

On page do it via an Exec with a check that you pass to exec
June 26th 19 at 14:01
$url = '';
copy('' . $url, 'image.jpg');
June 26th 19 at 14:03

You guys have a API and and the prices are Oh sooooo modest.
June 26th 19 at 14:05
Standard means do not. Curl in PHP only implementation of HTTP.
And need a headless browser (library available), and HTML and CSS and JS rasarit/trendedit/do. Are there, looking. I know Phantom, Awesomium, still know worse - CEF, Gecko, WebKit in Windows - donkey, but neither PHP, nor those not tied only to C#, C++.

Hosting also most likely will not work. Only on the VPS or Your personal localhost.

Although, you can still ready the service API to look for.

Find more questions by tags PHPjQuery