Download the PHP package minicodemonkey/portrayal without Composer
On this page you can find all versions of the php package minicodemonkey/portrayal. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download minicodemonkey/portrayal
More information about minicodemonkey/portrayal
Files in minicodemonkey/portrayal
Package portrayal
Short Description Simple, self-contained library allows you to capture screenshots of websites using PhantomJS.
License
Informations about the package portrayal
Portrayal
This simple, self-contained library allows you to capture screenshots using PhantomJS.
Installation
You can install this package through Composer. Edit your project's composer.json
file to require minicodemonkey/portrayal
.
You will also need to add post-install and post-update scripts to composer.json
as well as a config
entry to set up the phantomjs
binary dependency:
Now run composer update
from the terminal, and you're good to go!
For more information, check out jakoch/phantomjs-installer
Usage
Adjust timeout
The time in seconds to wait on the phantomjs process before giving up. The default timeout is 30s
.
Adjust rendering delay
The time in seconds to wait taking the screenshot after the webpage has loaded. The default value is 0.35s
(350ms
).
Disable animations
This will inject a couple of scripts to disable CSS3 animations as well as jQuery animations. Useful for making sure that subsequent screenshots will have the same state.
Change user agent
This allows you to change the HTTP User-Agent header set by the phantomjs process.
Change browser viewport dimensions
This will change the browser viewport. Please note that this might not necessarily correspond to the exact dimensions of the screenshot. Please see [https://github.com/ariya/phantomjs/issues/10619]() for additional details.
Specify a custom cookie jar
This will allow you to set specific cookies for the session, this is for example useful for retaining the cookie state across multiple requests.
All versions of portrayal with dependencies
symfony/process Version ^3.0
jakoch/phantomjs-installer Version 2.1.1-p05