PHP Classes

Webshots: Get a screenshot of a page using the plsein API

Recommend this page to a friend!
  Info   View files Example   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum (9)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 74%Total: 1,491 All time: 2,627 This week: 88Up
Version License PHP version Categories
webshots 1.0.5Free To Use But R...5PHP 5, Graphics, Web services
Description 

Author

This class can Get a screenshot of a page using the plsein API.

It can send a HTTP request to the plsein.in API Web server to get a screenshot of a Web page given its URL.

The API returns the URL for the screenshot image. The class retrieves and copies the screenshot image file to a given local file.

Picture of PLSCIS PLP
Name: PLSCIS PLP <contact>
Classes: 3 packages by
Country: India India
Age: ???
All time rank: 64638 in India India
Week rank: 180 Up17 in India India Up
Innovation award
Innovation award
Nominee: 1x

Example

<?php

$url
= "http://www.yahoo.com/";
$img = "/var/www/images/img.png";

include_once(
'webshots.php');
$wobj = new webshots();

if(
$wobj->url_to_image($url, $img)) {
    echo
"image created";
} else {
    echo
"some error occured please check response from api";
}
exit;
?>


  Files folder image Files  
File Role Description
Plain text file readme.txt Doc. documentation file
Plain text file webshots.php Class url to image
Plain text file webshots_test.php Example demo script to use webshots class

 Version Control Unique User Downloads Download Rankings  
 0%
Total:1,491
This week:0
All time:2,627
This week:88Up
User Ratings User Comments (3)
 All time
Utility:96%StarStarStarStarStar
Consistency:89%StarStarStarStarStar
Documentation:82%StarStarStarStarStar
Examples:89%StarStarStarStarStar
Tests:-
Videos:-
Overall:74%StarStarStarStar
Rank:171
 
Excellent work to generate image view of a website
5 years ago (javaria razzaq)
80%StarStarStarStarStar
good job :)
10 years ago (tomtheman)
77%StarStarStarStar
This is a good and useful class :-)
10 years ago (Josť Filipe Lopes Santos)
80%StarStarStarStarStar