rialto-php / puphpeteer

A Puppeteer bridge for PHP, supporting the entire API.
MIT License
1.34k stars 208 forks source link

Error in composer require nesk/puphpeteer #157

Open kaique-ryan-santos-chagas opened 2 years ago

kaique-ryan-santos-chagas commented 2 years ago

When i try to install the library into my Laravel project the terminal returns me this error

image

Someone can help me?

zendre4 commented 2 years ago

Hi, first your composer tell you to add the PHP extension named "sockets".

I'm on Linux i can't help you with your environment but I found this two articles (for me it's simple it's integrate on a package named php-common):

If you find how to enable it try to reinstall it (maybe clear cache it's needed).

https://medium.com/ariel-mejia-dev/laragon-setup-series-part-4-add-php-extensions-on-laragon-be0defb6b913 https://stackoverflow.com/questions/1361925/how-to-enable-socket-in-php

I expect this can help you

egyleader commented 2 years ago

in your php.ini uncomment that line extension=sockets