jonnnnyw / php-phantomjs

Execute PhantomJS commands through PHP
MIT License
1.44k stars 432 forks source link

Can not install in laravel5.6 #251

Open bhattraideb opened 6 years ago

bhattraideb commented 6 years ago

Hi John, I am trying to install this packege in laravel5.6. I followed the instructions but I am getting Call to undefined method JonnyW\PhantomJs\Client::setBinDir() for $client->setBinDir('../bin'); even Call to undefined method JonnyW\PhantomJs\Http\CaptureRequest::setCaptureFile() I might be the issue? I am using php7.0 with nginx on ubuntu.

hojabbr commented 6 years ago
    - Installation request for jonnyw/php-phantomjs 4.* -> satisfiable by jonnyw/php-phantomjs[4.0.x-dev, v4.0.0, v4.1.0, v4.2.0, v4.2.1, v4.3.0, v4.3.1, v4.3.2, v4.4.0, v4.5.0, v4.5.1, v4.6.0, v4.6.1].
    - Conclusion: don't install symfony/console v4.1.3
    - jonnyw/php-phantomjs 4.0.x-dev requires symfony/dependency-injection ~2.3

Dependency Issue

hojabbr commented 6 years ago

Try the DEV version:

composer require "jonnyw/php-phantomjs:@dev"

bhattraideb commented 4 years ago

Thanks @hojabbr