dimaskao/library_for_making_screenshots

There is no license information available for the latest version (2.0.0) of this package.

With this library you can take url from Excel file and make page screenshot.

2.0.0 2021-02-07 12:56 UTC

This package is auto-updated.

Last update: 2024-04-07 20:22:03 UTC


README

With this library you can make page screenshot with PHP script automatically.

General

In your Excel file must be the column with url and empty column on the right or left of url to saving file name. You can specify them in ->getScreenshots() method.

Installation

You can use composer to install this extension.

Just run:

$ composer require dimaskao/library_for_making_screenshots

How to use

At first include this library classes:

require_once __DIR__ . '/XXXXX/vendor/autoload.php';

use Dimaskao\Screenshoter\Screenshoter;

Where:
XXXXX path to library root folder;

Then use ->getScreenshots() method

$screenshoter = new Screenshoter('path/to/folder');//in tis folder will be saving screenshots

$screenshoter->getScreenshots('dir/', 'B', 'C');

dir/ - path to excel file
B - colunm with url
C - column to save filename