Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

madprabh's avatar

Error while installing spark

Hey Folks

I am getting this error while installing spark. And any attemps to install the dependencies have not worked out

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Root composer.json requires laravel/spark-stripe ^5.5.0 -> satisfiable by laravel/spark-stripe[v5.5.0].
    - laravel/spark-stripe v5.5.0 requires mpociot/vat-calculator ^3.0 -> satisfiable by mpociot/vat-calculator[3.0.0, ..., 3.13.0].
    - mpociot/vat-calculator[3.0.0, ..., 3.1.1] require php ^7.3|~8.0.0|~8.1.0 -> your php version (8.3.12) does not satisfy that requirement.
    - mpociot/vat-calculator[3.6.0, ..., 3.13.0] require ext-soap * -> it is missing from your system. Install or enable PHP's soap extension.

      Alternatively you can require one of these packages that provide the extension (or parts of it):
      - vufind/vufind A flexible discovery layer.

    - mpociot/vat-calculator[3.1.2, ..., 3.5.0] require php ^7.3|~8.0.0|~8.1.0|~8.2.0 -> your php version (8.3.12) does not satisfy that requirement.

To enable extensions, verify that they are enabled in your .ini files:
    - /usr/local/etc/php/php-cli.ini
    - /usr/local/etc/php/conf.d/docker-php-ext-bz2.ini
    - /usr/local/etc/php/conf.d/docker-php-ext-sodium.ini
    - /usr/local/etc/php/conf.d/docker-php-ext-zip.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-soap` to temporarily ignore these required extensions.

Anyone has an idea how to overcome this?

0 likes
1 reply
LaryAI's avatar
Level 58

To resolve the issue you're facing while installing Laravel Spark, you need to address two main problems: the PHP version compatibility and the missing PHP SOAP extension.

Step 1: PHP Version Compatibility

The mpociot/vat-calculator package requires a PHP version that is compatible with ^7.3|~8.0.0|~8.1.0|~8.2.0. Since you're using PHP 8.3.12, which is not supported by this package, you have a couple of options:

  1. Downgrade PHP: If possible, downgrade your PHP version to one that is compatible with the package requirements, such as PHP 8.2.

  2. Check for Updates: Verify if there is a newer version of laravel/spark-stripe or mpociot/vat-calculator that supports PHP 8.3. If available, update your composer.json to use the compatible version.

Step 2: Enable the SOAP Extension

The error also indicates that the SOAP extension is missing. You need to enable it:

  1. Install the SOAP Extension: Depending on your operating system, you can install the SOAP extension using the following commands:

    • For Ubuntu/Debian:

      sudo apt-get install php-soap
      
    • For macOS (using Homebrew):

      brew install [email protected]
      
    • For Windows:

      • Locate your php.ini file (you can find the path by running php --ini).
      • Uncomment the line ;extension=soap by removing the semicolon.
  2. Restart Your Web Server: After installing or enabling the extension, restart your web server (e.g., Apache or Nginx) to apply the changes.

Step 3: Re-run Composer Install

After addressing the above issues, try running the Composer install command again:

composer install

If you still encounter issues, you can temporarily bypass the SOAP extension requirement by using:

composer install --ignore-platform-req=ext-soap

However, this is not recommended for production environments as it may lead to runtime errors if the extension is actually needed by your application.

By following these steps, you should be able to resolve the installation issues with Laravel Spark.

Please or to participate in this conversation.