Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
hotrush committed Nov 14, 2016
1 parent 2fe2743 commit 4b841de
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Take website's screenshots with PHP/PhantomJS and save them to PNG, JPG or PDF.
Also you can take a look at simple microservice with lumen and this package - [hotrush/Webshotter-microservice](https://github.com/hotrush/Webshotter-microservice).

## Changelog
***0.1.5*** - custom ```$templatePath``` fixed, thanks to [mizansyed](https://github.com/mizansyed)
***0.1.3*** - added ```timeout``` property that allow to limit page load timeout (using [onResourceTimeout](http://phantomjs.org/api/webpage/handler/on-resource-timeout.html) phantomjs feature). If timeout reached ```TimeoutException``` will be thrown.

## Installation
Expand Down Expand Up @@ -39,7 +40,7 @@ $jpg = $webshot
->setWidth(1200)
->setHeight(800)
->setTimeout(5) // set timeout in seconds, 30 seconds default
->setFullPage(true) // set to true to get full page screenshot (width/height will be used for viewport only)
->setFullPage(true) // set to true to get full page screenshot (width/height will be used for viewport only)
->saveToPng('github', $path);
```

Expand Down

0 comments on commit 4b841de

Please sign in to comment.