use Goutte using PhantomJs client
It is recommended that you use Composer to install PHP PhantomJS. First, add the following to your project’s composer.json file:
#composer.json
"scripts": {
"post-install-cmd": [
"ByTIC\\GouttePhantomJs\\Composer\\PhantomInstaller::installPhantomJS"
],
"post-update-cmd": [
"ByTIC\\GouttePhantomJs\\Composer\\PhantomInstaller::installPhantomJS"
]
}
Finally, install the library from the root of your project:
$ composer require bytic/goutte-phantomjs-bridge