PHP code example of microweber / screen

1. Go to this page and download the library: Download microweber/screen library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

microweber / screen example snippets

 php
$screenCapture->setWidth(1200);
$screenCapture->setHeight(800);
 php
$screenCapture->setTop(100);
$screenCapture->setLeft(100);
 php
// You also need to set the width and height.
$screenCapture->setClipWidth(1200);
$screenCapture->setClipHeight(800);
 php
$screenCapture->setBackgroundColor('#ffffff');
 php
$screenCapture->setOptions([
    'ignore-ssl-errors' => 'yes',
    // '--ignore-ssl-errors' => 'yes', // dashes may be omitted
]);
 php
$screenCapture->jobs->setLocation('/path/to/jobs/dir/');
echo $screenCapture->jobs->getLocation(); // -> /path/to/jobs/dir/
 php
$screenCapture->jobs->clean();