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.

Installs: 29

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Type:project

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