I'm trying to use PHP Phantom with Laravel project on Ubuntu (php version > 5.5). Followed the installation steps mention here : http://jonnnnyw.github.io/php-phantomjs/ .
I'm getting the following error:
Error when executing PhantomJs procedure - File does not exist or is not executable: bin/phantomjs
Even tried to set bin directory using $client->setBinDir('/path/public/bin')
. Also tried both absolute and relative path but following error was thrown:
Call to undefined method
JonnyW\PhantomJs\Client::setBinDir()
Tried everything found over the internet to fix this.