Skip to content
AkramBerkawyPublic

About

Html to PDF and web page screenshots using headless Chrome with no need for Nodejs/npm.

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

Repository files navigation

Shotify: Html to PDF and web page screenshots using headless Chrome

License: GPL v3 Build Status Packagist Version PHP from Packagist

No need for Nodejs/npm!

Documentation

Installation

The best way to install this package is through your terminal via Composer.

composer require akrambe/shotify

Usage

<?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();
            

License

Shotify is licensed under the terms of the GNU General Public License v3.0 (See LICENSE file for details).


About

Html to PDF and web page screenshots using headless Chrome with no need for Nodejs/npm.

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages