jarzon / capture
此包已被废弃,不再维护。未建议替代包。
此包最新版本(v0.1.4)没有可用的许可证信息。
v0.1.4
2018-05-06 21:01 UTC
Requires
- php: >=7.0.0
Requires (Dev)
- phpunit/phpunit: 6.2.*
README
使用Chrome截取页面截图/pdf/html。
$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');
配置Chrome位置
$capture = new Capture([ 'chrome_path' => (Capture::isWindows())? '"C:/Program Files (x86)/Google/Chrome/Application/chrome.exe"': '/usr/bin/google-chrome' ]);