Download the PHP package screenshotmachine/screenshotmachine-php without Composer
On this page you can find all versions of the php package screenshotmachine/screenshotmachine-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download screenshotmachine/screenshotmachine-php
More information about screenshotmachine/screenshotmachine-php
Files in screenshotmachine/screenshotmachine-php
Package screenshotmachine-php
Short Description Captures website screenshot and converts website to PDF using Screenshot machine - online website screenshot generator and website to PDF converter.
License MIT
Homepage https://github.com/screenshotmachine/screenshotmachine-php
Informations about the package screenshotmachine-php
screenshotmachine-php
Captures website screenshot and converts website to PDF using Screenshot machine - online website screenshot generator and website to PDF converter.
Installation
a) using Composer - package manager for PHP
b) or download source code directly from GitHub.com
First, you need to create a free/premium account at www.screenshotmachine.com website. After registration, you will see your customer key in your user profile. Also secret phrase is maintained here. Please, use secret phrase always, when your API calls are called from publicly available websites.
Set-up your customer key and secret phrase (if needed) in the script:
Website screenshot API
Set additional options to fulfill your needs:
More info about options can be found in our Website screenshot API.
Sample code
Generated link can be placed in tag or used in your business logic later.
If you need to store captured screenshot as an image, just call:
Captured screenshot will be saved as file in current directory.
Website to PDF API
Set the PDF options:
More info about options can be found in our Website to PDF API.
Sample code
Captured PDF will be saved as file in the current directory.
License
The MIT License (MIT)