2017 © Pedro Peláez
 

library icapture

A PHP Class to interact with PhantomJs and capture screenshot of a webpage

image

wueason/icapture

A PHP Class to interact with PhantomJs and capture screenshot of a webpage

  • Saturday, April 8, 2017
  • by wueason
  • Repository
  • 1 Watchers
  • 1 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

icapture

PhantomJS as a service with Swoole module. Icapture can be a service for your screenshop purpose., (*1)

Requirements

  • PHP 5.3+
  • Redis 2.2+ and make sure the redis is up
  • Swoole extension 1.8.13+
  • Optional but Recommended: Composer

Getting Started

If you're not familiar with Composer, please see http://getcomposer.org/., (*2)

  1. Add icapture to your application's composer.json.
{
    "require": {
        "wueason/icapture": "1.0.x"
    }
}
  1. Run composer install., (*3)

  2. If you haven't already, add the Composer autoload to your project's initialization file. (example), (*4)

require 'vendor/autoload.php';
  1. Service management.
make start
make stop
make restart
  1. Composer a request with \Icapture\CaptureClient, and get the capture.
$client = new \Icapture\CaptureClient();

$client->request();

echo $clien->getCaptureFile();

Tips

PhantomJS binary file in Screen may be broken, you can use your own with phantomjsBinPath setting instead., (*5)

The Versions

08/04 2017

dev-master

9999999-dev

A PHP Class to interact with PhantomJs and capture screenshot of a webpage

  Sources   Download

MIT

The Requires

 

by Eason Wu

service phantomjs screen capture print-screen

08/04 2017

v1.0.0

1.0.0.0

A PHP Class to interact with PhantomJs and capture screenshot of a webpage

  Sources   Download

MIT

The Requires

 

by Eason Wu

service phantomjs screen capture print-screen