Level 102
Start by installing or enabling the dom and curl extensions for php and then try again
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
get this error:
./composer.json has been updated
Running composer update laravel/socialite
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- phpunit/phpunit is locked to version 9.5.17 and an update of this package was not requested.
- phpunit/phpunit 9.5.17 requires ext-dom * -> it is missing from your system. Install or enable PHP's dom extension.
Problem 2
- spatie/laravel-ignition is locked to version 1.0.6 and an update of this package was not requested.
- spatie/laravel-ignition 1.0.6 requires ext-curl * -> it is missing from your system. Install or enable PHP's curl extension.
Problem 3
- tijsverkoyen/css-to-inline-styles 2.2.4 requires ext-dom * -> it is missing from your system. Install or enable PHP's dom extension.
- laravel/framework v9.3.1 requires tijsverkoyen/css-to-inline-styles ^2.2.2 -> satisfiable by tijsverkoyen/css-to-inline-styles[2.2.4].
- laravel/framework is locked to version v9.3.1 and an update of this package was not requested.
To enable extensions, verify that they are enabled in your .ini files:
- /etc/php/8.1/cli/php.ini
- /etc/php/8.1/cli/conf.d/10-mysqlnd.ini
- /etc/php/8.1/cli/conf.d/10-opcache.ini
- /etc/php/8.1/cli/conf.d/10-pdo.ini
- /etc/php/8.1/cli/conf.d/20-calendar.ini
- /etc/php/8.1/cli/conf.d/20-ctype.ini
- /etc/php/8.1/cli/conf.d/20-exif.ini
- /etc/php/8.1/cli/conf.d/20-ffi.ini
- /etc/php/8.1/cli/conf.d/20-fileinfo.ini
- /etc/php/8.1/cli/conf.d/20-ftp.ini
- /etc/php/8.1/cli/conf.d/20-gettext.ini
- /etc/php/8.1/cli/conf.d/20-iconv.ini
- /etc/php/8.1/cli/conf.d/20-mysqli.ini
- /etc/php/8.1/cli/conf.d/20-pdo_mysql.ini
- /etc/php/8.1/cli/conf.d/20-pdo_pgsql.ini
- /etc/php/8.1/cli/conf.d/20-pgsql.ini
- /etc/php/8.1/cli/conf.d/20-phar.ini
- /etc/php/8.1/cli/conf.d/20-posix.ini
- /etc/php/8.1/cli/conf.d/20-readline.ini
- /etc/php/8.1/cli/conf.d/20-shmop.ini
- /etc/php/8.1/cli/conf.d/20-sockets.ini
- /etc/php/8.1/cli/conf.d/20-sysvmsg.ini
- /etc/php/8.1/cli/conf.d/20-sysvsem.ini
- /etc/php/8.1/cli/conf.d/20-sysvshm.ini
- /etc/php/8.1/cli/conf.d/20-tokenizer.ini
You can also run `php --ini` in a terminal to see which files are used by PHP in CLI mode.
Alternatively, you can run Composer with `--ignore-platform-req=ext-dom --ignore-platform-req=ext-curl --ignore-platform-req=ext-dom` to temporarily ignore these required extensions.
You can also try re-running composer require with an explicit version constraint, e.g. "composer require laravel/socialite:*" to figure out if any version is installable, or "composer require laravel/socialite:^2.1" if you know which you need.
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
yesterday when i install this on the same project all be fine
Please or to participate in this conversation.