No need for Nodejs/npm!
The best way to install this package is through your terminal via Composer.
composer require akrambe/shotify
<?php
require('vendor/autoload.php');
// PDF print from url
Shotify\Launcher::fromUrl('http://example.com')
->saveToPDF('example.pdf');
// Screenshot
Shotify\Launcher::fromUrl('http://example.com')
->captureScreenshot('hello.png',
(new Shotify\Options\ScreenshotOptions)
->setQuality(70)
->setFormat('png')
);
// Get document outer HTML
$html = Shotify\Launcher::fromUrl('http://example.com')
->outerHtml();
Shotify is licensed under the terms of the GNU General Public License v3.0 (See LICENSE file for details).