jarzon / capture
Installs: 33
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Type:project
pkg:composer/jarzon/capture
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' ]);