Unable to install `google-search-results-php` v2.0 with composer and PHP 8.x
google-search-results-php v2.0 cannot be installed with composer in PHP 8.x environment:
There are no issues when using serpapi/google-search-results-php v1.2.0 and PHP 8.0 & 8.1 and composer:
I had a customer report this today.
Looking into it further, users who install the package through composer (on PHP 8) are receiving version 1.2. This outdated version does not match our updated docs, leading to a confusing experience.
While the dev-master version does support PHP 8.0, version 2.0 does not.
We still get v1.2 via composer. Please update this, and make sure it also works on PHP 8.3 without nasty warnings.
Thank you for your feedback @maucherOnline, and apologies for the trouble.
Can you try the following command and let me know if that works?
composer require serpapi/google-search-results-php:^2.0