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.

Maintainers

Package info

github.com/Jarzon/capture

Issues

Type:project

pkg:composer/jarzon/capture

Statistics

Installs: 33

Dependents: 0

Suggesters: 0

Stars: 0

v0.1.4 2018-05-06 21:01 UTC

This package is auto-updated.

Last update: 2020-02-12 02:16:33 UTC


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'
    ]);