PHP Classes

GrabzIt PHP Library: Take screenshots of Web pages using GrabzIt

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  Info   View files View files (14)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2015-02-12 (9 months ago) RSS 2.0 feedNot enough user ratingsTotal: 639 All time: 4,678 This week: 986Up
Version License PHP version Categories  
grabzit 2.2.0MIT/X Consortium ...5.0PHP 5, Graphics, Web services
Description Author  

This class can take screenshots of Web pages using GrabzIt and return them as images, tables or PDF documents.

It can send a HTTP request to GrabzIt API Web server to request that the service takes a screenshot from a given page.

When the page picture taking request is sent, several options can be configured like the browser window size, the resulting image format, if it should use the mobile version of a web page, if only part of a web page should be captured, and a callback URL that will be accessed by the GrabzIt service when the page picture is ready.

Then the class can send a new request to the GrabzIt API to request the page picture image file when it is ready.

Innovation Award  
PHP Programming Innovation award nominee
May 2012
Number 3

Prize: One book of choice by Packt
Some sites need to show previews of how a page of another site looks.

This class can generate image previews of a given site page using the Grabzit service.

Manuel Lemos
Picture of GrabzIt
Name: GrabzIt <contact>
Classes: 1 package by
Country: United Kingdom United Kingdom
Age: 32
All time rank: 2728121 in United Kingdom United Kingdom
Week rank: 1602 Up62 in United Kingdom United Kingdom Up
Innovation award
Innovation award
Nominee: 1x

GrabzIt 2.2

This library allows you to programmatically convert web pages into images, PDF's, CSV's and spreadsheets. Additionally GrabzIt allows you to convert online videos into animated GIF's.

Its usually best to place these package files in their own directory.

To run the sample

Open config.php and change the three parameters to match your settings the first two parameters can be got from
the third parameter is the location you have placed the GrabzItHandler.php on your website.

$grabzItApplicationKey = "APPLICATION KEY";
$grabzItApplicationSecret = "APPLICATION SECRET";
$grabzItHandlerUrl = "";

Ensure your application has read and write access to the "results" directory.

Finally run the index.php to start converting web pages.

More documentation can be found at:
  Files folder image Files  
File Role Description
Files folder imageajax (2 files)
Files folder imagecss (2 files)
Files folder imagelib (5 files)
Files folder imageresults (1 file)
Accessible without login Plain text file config.php Conf. Configure your demo with this file.
Accessible without login Plain text file handler.php Example An example of a GrabzIt handler
Accessible without login Plain text file index.php Example Example script
Accessible without login Plain text file readme.txt Doc. Documentation

  Files folder image Files  /  ajax  
File Role Description
  Accessible without login Plain text file results.php Example Retrieve the latest screenshots that have been saved to your server.
  Accessible without login Plain text file ui.js Data JavaScript that powers the demo.

  Files folder image Files  /  css  
File Role Description
  Accessible without login Image file pdf.png Icon A PDF icon.
  Accessible without login Plain text file style.css Data Styling for the demo

  Files folder image Files  /  lib  
File Role Description
  Plain text file GrabzItClient.class.php Class The main class that allows access to the GrabzIt screenshot webservice
  Plain text file GrabzItCookie.class.php Class Class that represents the a cookie
  Plain text file GrabzItException.class.php Class Now provides more accurate error reporting.
  Plain text file GrabzItStatus.class.php Class Class that represents the status of a screenshot
  Plain text file GrabzItWaterMark.class.php Class Class that represents a custom watermark.

  Files folder image Files  /  results  
File Role Description
  Accessible without login Plain text file results.txt Data Auxiliary data

 Version Control Unique User Downloads Download Rankings  
 100%Total:639All time:4,678
 This week:0This week:986Up
 User Comments (1)  
good site
3 years ago (Ziaullah Siddiqui)