Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

should be compatible with #223

Open
wants to merge 64 commits into
base: 4.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
64 commits
Select commit Hold shift + click to select a range
ab54e5d
Update README.md
jonnnnyw Jul 7, 2015
d75c3b5
Updating packages
jonnnnyw Dec 17, 2015
2cb40e0
Adding additional operating systems to travis tests
jonnnnyw Dec 17, 2015
b47bbce
Removing OSX from travis tests
jonnnnyw Dec 17, 2015
8ed00db
Specifying PHP versions
jonnnnyw Dec 17, 2015
bc0bce3
Removing pyrus from travis
jonnnnyw Dec 17, 2015
e44ccd5
Removing php 5.6
jonnnnyw Dec 17, 2015
380cfd3
Updaitng README
jonnnnyw Dec 17, 2015
d59437d
Updaitng README
jonnnnyw Dec 17, 2015
190a113
Removing outdated docs and examples
jonnnnyw Dec 17, 2015
6931851
Updaitng README
jonnnnyw Dec 17, 2015
62921ea
Updaitng README
jonnnnyw Dec 17, 2015
0dd3943
Updaitng README
jonnnnyw Dec 17, 2015
def95fc
Updaitng README
jonnnnyw Dec 17, 2015
406a6f9
Bumping dependency versions
jonnnnyw Dec 17, 2015
a2f676a
Dropping dependency versions
jonnnnyw Dec 17, 2015
b9cc9fd
Added the procedure compiler to the Client class to match instruction…
tlaverdure Jan 25, 2016
789f757
Added getters and setters for image capture format and quality to be …
tlaverdure Jan 25, 2016
8c0c2d7
Merge pull request #77 from tlaverdure/master
jonnnnyw Jan 25, 2016
ed03e16
Fixing misnamed method in Unit test.
j03k64 Jan 29, 2016
d6ad92b
upgraded phantomjs installer to 2.1.1 - all unit tests pass
Jan 29, 2016
3ae8d84
include minor and patch updates to phantomjs-installer
Jan 31, 2016
57a10da
Merge pull request #78 from jpirkey/patch-1
jonnnnyw Feb 1, 2016
68316b3
Merge pull request #79 from nwoodward/upgrade-phantomjs
jonnnnyw Feb 1, 2016
3a9e11e
Upgrading PhantomJS to version 2.1.1
jonnnnyw Feb 1, 2016
030ee31
Redirect URL is always blank due to wrong case - https://github.com/j…
jonnnnyw Feb 2, 2016
59b4325
Upgrading dependencies to check backwards compatibility in automated …
jonnnnyw Feb 3, 2016
a0b3270
Twig_Loader_String is now deprecated - https://github.com/jonnnnyw/ph…
jonnnnyw Mar 22, 2016
5ba4950
Locking PhantomJS installer to version 2.1.1 as it was causing issues…
jonnnnyw Apr 20, 2016
1e09977
Adding body styles partial allowing CSS styles to be set on the body …
jonnnnyw May 2, 2016
62ab9b8
Fixing property doc type
jonnnnyw May 2, 2016
ee6cecb
Using uniqid for tmp file name generation appears to be causing confl…
jonnnnyw May 20, 2016
dafb418
Can now add repeating header and footer to PDF output - https://githu…
jonnnnyw Jun 16, 2016
486144a
Upgrading phpunit version and fixing broken test in earlier php versions
jonnnnyw Jun 16, 2016
9f5e81f
Downgrading phpunit for support for earlier PHP versions
jonnnnyw Jun 16, 2016
50bc19d
Comment blocks in procedures and partials no longer break validation …
jonnnnyw Jun 16, 2016
384b6db
Can now set client to lazy load pages which will wait for all resourc…
jonnnnyw Jun 16, 2016
1cb8011
Updating build status badge
jonnnnyw Jun 16, 2016
cf8d9a2
Resource debug logging was causing the script to hang whith large num…
jonnnnyw Jun 28, 2016
01d377d
Updating readme
jonnnnyw Jun 28, 2016
cb3a4e5
Update composer.json
amitaymolko Oct 20, 2016
ef1f5e2
Merge pull request #1 from amitaymolko/amitaymolko-patch-1
amitaymolko Oct 20, 2016
bd17d5e
Merge pull request #131 from amitaymolko/master
jonnnnyw Nov 15, 2016
23c9092
URL validation has been removed as it cannot cover all use cases. A r…
jonnnnyw Nov 15, 2016
c11e1b5
Downgrading phpunit for support for earlier PHP versions
jonnnnyw Nov 15, 2016
0baec84
Margin for PDF output can now be defined as an object allowing differ…
jonnnnyw Nov 15, 2016
65564e8
Can now set PhantomJS page settings, including custom user agent, in …
jonnnnyw Nov 15, 2016
78887ba
Added support for cookie management. Can now add and delete cookies -…
jonnnnyw Nov 16, 2016
95cfd7a
Removing PHP5.6 specific code
jonnnnyw Nov 16, 2016
a89abbc
Removing PHP5.6 specific code
jonnnnyw Nov 16, 2016
a23253f
updating jakoch/phantomjs-installer to 2.1.1-p08
jakoch Jan 10, 2017
7abe782
Added networkRequest to onResourceRequested
mmiermans Jan 18, 2017
e884a57
Introduce ability to get cookies from response
andriuspetrauskis Apr 10, 2017
ea0db4f
Update timestamp value in test
andriuspetrauskis Apr 10, 2017
17c50b7
Fix test for PHP5.3
andriuspetrauskis Apr 10, 2017
69f9333
Adjust timestamp in test to Travis timezone
andriuspetrauskis Apr 10, 2017
9686901
Merge remote-tracking branch 'remotes/origin/cookies-in-response'
andriuspetrauskis Apr 10, 2017
d650128
Merge pull request #149 from jakoch/patch-2
jonnnnyw Apr 22, 2017
c773f97
Merge pull request #153 from mmiermans/patch-1
jonnnnyw Apr 22, 2017
604f05b
Merge pull request #172 from stexaz/master
jonnnnyw Apr 22, 2017
b3c3e20
Trying to user local install of phpunit
jonnnnyw Apr 22, 2017
0f56dd5
Remove wrongly overridden "load()" method but preserve the logic
BR0kEN- Mar 7, 2018
9fa2959
Merge pull request #241 from BR0kEN-/symfony-compatibility
jonnnnyw Apr 3, 2018
f357645
Updaitng tests
JonnnyW Apr 3, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
language: php

os:
- linux
- windows

php:
- 5.3
- 5.4
- 5.5
- 5.6

before_script:
- composer self-update
- composer install
- pyrus install pear/PHP_CodeSniffer
- phpenv rehash

script:
- phpunit --coverage-clover=coverage.clover
- bin/phpunit --coverage-clover=coverage.clover

after_script:
- wget https://scrutinizer-ci.com/ocular.phar
Expand Down
33 changes: 15 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,22 @@ websites that demand javascript support and also supports screen captures.

[Full Documentation](http://jonnnnyw.github.io/php-phantomjs/)

[![Total Downloads](https://poser.pugx.org/jonnyw/php-phantomjs/downloads.png)](https://packagist.org/packages/jonnyw/php-phantomjs) [![Latest Stable Version](https://poser.pugx.org/jonnyw/php-phantomjs/v/stable.png)](https://packagist.org/packages/jonnyw/php-phantomjs) [![Build Status](https://travis-ci.org/jonnnnyw/php-phantomjs.png?branch=master)](https://travis-ci.org/jonnnnyw/php-phantomjs) [![Scrutinizer Quality Score](https://scrutinizer-ci.com/g/jonnnnyw/php-phantomjs/badges/quality-score.png?s=631d32fa1fbb9300eb84b9b52702c7ffeac046a1)](https://scrutinizer-ci.com/g/jonnnnyw/php-phantomjs/) [![Code Coverage](https://scrutinizer-ci.com/g/jonnnnyw/php-phantomjs/badges/coverage.png?s=893b5997da45448e32983b8568a39630b0b2d91b)](https://scrutinizer-ci.com/g/jonnnnyw/php-phantomjs/)
[![Total Downloads](https://poser.pugx.org/jonnyw/php-phantomjs/downloads.png)](https://packagist.org/packages/jonnyw/php-phantomjs) [![Latest Stable Version](https://poser.pugx.org/jonnyw/php-phantomjs/v/stable.png)](https://packagist.org/packages/jonnyw/php-phantomjs) [![Build Status](https://travis-ci.org/jonnnnyw/php-phantomjs.svg?branch=master)](https://travis-ci.org/jonnnnyw/php-phantomjs) [![Scrutinizer Quality Score](https://scrutinizer-ci.com/g/jonnnnyw/php-phantomjs/badges/quality-score.png?s=631d32fa1fbb9300eb84b9b52702c7ffeac046a1)](https://scrutinizer-ci.com/g/jonnnnyw/php-phantomjs/) [![Code Coverage](https://scrutinizer-ci.com/g/jonnnnyw/php-phantomjs/badges/coverage.png?s=893b5997da45448e32983b8568a39630b0b2d91b)](https://scrutinizer-ci.com/g/jonnnnyw/php-phantomjs/)

Feature List
---------------------

* Load webpages through the PhantomJS headless browser
* View detailed response data including page content, headers, status code etc.
* Handle redirects
* View javascript console errors
* View detailed PhantomJS debugged information
* Save screen captures to local disk
* Set viewport size
* Define screen capture x, y, width and height parameters
* Delay page rendering for a specified time
* Execute PhantomJS with command line options
* Easily build and run custom PhantomJS scripts


Upgrading From v2.*
---------------------

If you are using a version of PHP PhantomJS prior to version v3.0.0 then you should note that there have been some major changes to the interface. Please view the [Full Documentation](http://jonnnnyw.github.io/php-phantomjs/) as a guide when upgrading your implementation.
* Load webpages through the PhantomJS headless browser
* View detailed response data including page content, headers, status code etc.
* Handle redirects
* View javascript console errors
* View detailed PhantomJS debug information
* Save screen captures to local disk
* Output web pages to PDF document
* Set viewport size
* Set fixed header and footer for PDF output
* Define screen capture x, y, width and height parameters
* Delay page rendering for a specified time
* Delay page rendering until page resources are fully loaded
* Execute PhantomJS with command line options
* Easily build and run custom PhantomJS scripts
18 changes: 8 additions & 10 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,18 @@
],
"minimum-stability": "stable",
"require": {
"php": ">=5.3.0",
"symfony/config": "~2.3",
"symfony/dependency-injection": "~2.3",
"symfony/filesystem": "~2.3",
"symfony/yaml": "~2.3",
"php": ">=5.4.0",
"symfony/config": "~2.3|~3.0",
"symfony/dependency-injection": "~2.3|~3.0",
"symfony/filesystem": "~2.3|~3.0",
"symfony/yaml": "~2.3|~3.0",
"twig/twig": "~1.16",
"jakoch/phantomjs-installer": "1.9.8"
"jakoch/phantomjs-installer": "2.1.1-p08"
},
"require-dev": {
"phpunit/phpunit": "~4.0",
"zendframework/zendpdf": "~2.0"
"zendframework/zendpdf": "~2.0",
"smalot/pdfparser": "~0.9"
},
"autoload": {
"psr-0": {
Expand All @@ -34,9 +35,6 @@
"config": {
"bin-dir": "bin"
},
"bin": [
"bin/phantomloader"
],
"scripts": {
"post-install-cmd": [
"PhantomInstaller\\Installer::installPhantomJS"
Expand Down
Loading