PHP Classes

GrabzIt PHP Library: Take screenshots of Web pages using GrabzIt

Recommend this page to a friend!
  Info   Videos Videos   View files View files (24)   DownloadInstall with Composer Download .zip   Reputation   Support forum (4)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2022-10-21 (1 month ago) RSS 2.0 feedNot enough user ratingsTotal: 778 This week: 1All time: 4,347 This week: 270Up
Version License PHP version Categories
grabzit 3.0.30MIT/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
Innovation award
Innovation award
Nominee: 1x

Details
GrabzIt 3.5 =========== This library allows you to programmatically convert HTML and URL's into images, DOCX documents, rendered HTML, PDF's, CSV's, spreadsheets and JSON. Additionally GrabzIt allows you to convert online videos into animated GIF's. It is usually best to place these package files in their own directory. To run the demo Ensure the MBString extension is installed. Open config.php and change the application key and application secret parameters to match what is found here: https://grabz.it/api/ If you are not on your local machine you can optionally change the handlerUrl to match the publicly accessible location of the GrabzItHandler.php file. Otherwise leave it as it is and the capture will be downloaded synchronously. $grabzItApplicationKey = "APPLICATION KEY"; $grabzItApplicationSecret = "APPLICATION SECRET"; $grabzItHandlerUrl = "http://www.example.com/grabzit/handler.php"; 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: https://grabz.it/api/php/
  Files folder image Files  
File Role Description
Files folder imageajax (2 files)
Files folder imagecss (2 files)
Files folder imagelib (13 files)
Files folder imageresults (1 file)
Accessible without login Plain text file composer.json Data Auxiliary data
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 license.txt Doc. Documentation
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 GrabzItAnimationOptions.php Class Class source
  Plain text file GrabzItBaseOptions.php Class Class source
  Plain text file GrabzItClient.php Class Class source
  Plain text file GrabzItCookie.php Class Class source
  Plain text file GrabzItDOCXOptions.php Class Class source
  Plain text file GrabzItException.php Class Class source
  Plain text file GrabzItHTMLOptions.php Class Class source
  Plain text file GrabzItImageOptions.php Class Class source
  Plain text file GrabzItPDFOptions.php Class Class source
  Plain text file GrabzItRequest.php Class Class source
  Plain text file GrabzItStatus.php Class Class source
  Plain text file GrabzItTableOptions.php Class Class source
  Plain text file GrabzItWaterMark.php Class Class source

  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  
 66%
Total:778
This week:1
All time:4,347
This week:270Up
User Comments (2)
nice
5 years ago (muabshir)
80%StarStarStarStarStar
good site
10 years ago (Ziaullah Siddiqui)
72%StarStarStarStar