From b38e1758b190ad4ac9bdd0f12ac8c6ff150cbc7d Mon Sep 17 00:00:00 2001 From: rush Date: Wed, 27 Dec 2017 13:18:11 +0300 Subject: [PATCH] update readme / ci fixes --- .travis.yml | 3 +-- README.md | 4 ++++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index c7561d7..61a80ba 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,12 +10,11 @@ php: matrix: allow_failures: - - php: 7.0 - php: nightly - php: hhvm before_install: - - wget http://security.ubuntu.com/ubuntu/pool/main/i/icu/libicu52_52.1-3ubuntu0.4_amd64.deb + - wget http://security.ubuntu.com/ubuntu/pool/main/i/icu/libicu52_52.1-3ubuntu0.7_amd64.deb - sudo dpkg -i libicu52_52.1-3ubuntu0.4_amd64.deb before_script: diff --git a/README.md b/README.md index 88846a4..556183a 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,8 @@ 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.6*** - added ```waitForImages()``` and ```imagesLoadingTimeout``` + ***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. @@ -42,6 +44,8 @@ $jpg = $webshot ->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) + ->waitForImages() // wait when all images will load + ->setImagesLoadingTimeout() // images loading timeout, will failt if not loaded ->saveToPng('github', $path); ```