jarzon / capture
This package is abandoned and no longer maintained.
No replacement package was suggested.
There is no license information available for the latest version (v0.1.4) of this package.
Package info
Type:project
pkg:composer/jarzon/capture
v0.1.4
2018-05-06 21:01 UTC
Requires
- php: >=7.0.0
Requires (Dev)
- phpunit/phpunit: 6.2.*
README
Take a screenshot/pdf/html, of a page using Chrome.
$capture = new Capture(); $stout = $capture->screenshot('http://google.com', "destination/screenshot.png"); $stout = $capture->pdf('http://google.com', "destination/screenshot.pdf"); $html = $capture->html('http://google.com');
Configure Chrome location
$capture = new Capture([ 'chrome_path' => (Capture::isWindows())? '"C:/Program Files (x86)/Google/Chrome/Application/chrome.exe"': '/usr/bin/google-chrome' ]);