php-phantomjs icon indicating copy to clipboard operation
php-phantomjs copied to clipboard

laravel 5.8 unable to install

Open yany88 opened this issue 5 years ago • 11 comments

  • symfony/dependency-injection 3.4.x-dev conflicts with symfony/http-kernel[v4.2.4].
    • symfony/dependency-injection v3.4.0 conflicts with symfony/http-kernel[v4.2.4].
    • symfony/dependency-injection v3.4.0-BETA1 conflicts with symfony/http-kernel[v4.2.4].
    • symfony/dependency-injection v3.4.0-BETA2 conflicts with symfony/http-kernel[v4.2.4].
    • symfony/dependency-injection v3.4.0-BETA3 conflicts with symfony/http-kernel[v4.2.4].
    • symfony/dependency-injection v3.4.0-BETA4 conflicts with symfony/http-kernel[v4.2.4].
    • symfony/dependency-injection v3.4.0-RC1 conflicts with symfony/http-kernel[v4.2.4].
    • symfony/dependency-injection v3.4.0-RC2 conflicts with symfony/http-kernel[v4.2.4].
    • symfony/dependency-injection v3.4.1 conflicts with symfony/http-kernel[v4.2.4].
    • symfony/dependency-injection v3.4.10 conflicts with symfony/http-kernel[v4.2.4].
    • symfony/dependency-injection v3.4.11 conflicts with symfony/http-kernel[v4.2.4].
    • symfony/dependency-injection v3.4.12 conflicts with symfony/http-kernel[v4.2.4].
    • symfony/dependency-injection v3.4.13 conflicts with symfony/http-kernel[v4.2.4].
    • symfony/dependency-injection v3.4.14 conflicts with symfony/http-kernel[v4.2.4].
    • symfony/dependency-injection v3.4.15 conflicts with symfony/http-kernel[v4.2.4].
    • symfony/dependency-injection v3.4.16 conflicts with symfony/http-kernel[v4.2.4].
    • symfony/dependency-injection v3.4.17 conflicts with symfony/http-kernel[v4.2.4].
    • symfony/dependency-injection v3.4.18 conflicts with symfony/http-kernel[v4.2.4].
    • symfony/dependency-injection v3.4.19 conflicts with symfony/http-kernel[v4.2.4].
    • symfony/dependency-injection v3.4.2 conflicts with symfony/http-kernel[v4.2.4].
    • symfony/dependency-injection v3.4.20 conflicts with symfony/http-kernel[v4.2.4].
    • symfony/dependency-injection v3.4.21 conflicts with symfony/http-kernel[v4.2.4].
    • symfony/dependency-injection v3.4.22 conflicts with symfony/http-kernel[v4.2.4].
    • symfony/dependency-injection v3.4.23 conflicts with symfony/http-kernel[v4.2.4].
    • symfony/dependency-injection v3.4.3 conflicts with symfony/http-kernel[v4.2.4].
    • symfony/dependency-injection v3.4.4 conflicts with symfony/http-kernel[v4.2.4].
    • symfony/dependency-injection v3.4.5 conflicts with symfony/http-kernel[v4.2.4].
    • symfony/dependency-injection v3.4.6 conflicts with symfony/http-kernel[v4.2.4].
    • symfony/dependency-injection v3.4.7 conflicts with symfony/http-kernel[v4.2.4].
    • symfony/dependency-injection v3.4.8 conflicts with symfony/http-kernel[v4.2.4].
    • symfony/dependency-injection v3.4.9 conflicts with symfony/http-kernel[v4.2.4].
    • Installation request for symfony/http-kernel (locked at v4.2.4) -> satisfiable by symfony/http-kernel[v4.2.4].

yany88 avatar Mar 27 '19 15:03 yany88

Same issue here

ligne13 avatar May 14 '19 17:05 ligne13

Same

mikeburton220 avatar Jun 03 '19 16:06 mikeburton220

Got the same issue, any news on this? It's already been a few months.

goowikns avatar Jun 27 '19 08:06 goowikns

I'm having the same issue with laravel 5.7.

neokyuubi avatar Jun 29 '19 13:06 neokyuubi

This may help:

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

elephantux avatar Jul 11 '19 07:07 elephantux

This may help:

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

I have used that dev version before but it creates a new whole problems of incompatibility. and you have to use an older pahntomJs and also some tweaks to set its path. So finally i just switched to nesk/puphpeteer

Thanks.

neokyuubi avatar Jul 15 '19 18:07 neokyuubi

Same issue, does anyone found solution ? (except dev version)

allanvb avatar Sep 14 '19 10:09 allanvb

@allanvb I found an other package that lets you use the same syntax as "jonnnnyw/php-phantomjs" (last update was 2018-04-03). It's "josh/laravel-phantomjs" (which is more recent, last update was 2019-03-27) i didn't check but maybe it's a fork.

Anyways, after installing it you can either use the syntax in the "jonnnnyw/php-phantomjs" documentation page or stick with the way that "josh/laravel-phantomjs" gives us.

here's an example assuming that your browser is in the bin folder"/bin/phantomjs" of your root application :

$url = 'www.website.com';
$client = \JonnyW\PhantomJs\Client::getInstance();
$client->getEngine()->setPath( base_path().'/bin/phantomjs');
$request_ = $client->getMessageFactory()->createRequest($url, 'GET');
$response_ = $client->getMessageFactory()->createResponse();
$req->addHeader('user-agent', 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.1.1 Safari/605.1.15');
$client->getEngine()->addOption('--load-images=false');
$client->isLazy();
$client->send($request_, $response_);

Ps : I recommend to try it on a fresh installation of Laravel 5.8 before implementing it in your project just in case.

neokyuubi avatar Sep 15 '19 23:09 neokyuubi

Remove the vendor directory completely and reinstall rm -rf vendor composer install

d2x avatar Nov 13 '19 20:11 d2x

Even removing vendor dir completely and reinstall using composer does not work at all times. In production and pre-production we do this on every deploy in general, but it does not fix the issue with a non-working and missing phantomjs file.

I solved it by processing a post-script that copies phantomjs to the vendor/bin folder and made a chmod change on the file to allow read and execution.

dk-jessn avatar Dec 10 '19 10:12 dk-jessn

try this : composer require neokyuubi/php-phantomjs:dev-master

neokyuubi avatar Apr 18 '22 03:04 neokyuubi