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

hellomars's avatar

Middleware to protect against unverified webhooks from 3rd party services fails to install

Dear Sparkers,

I tried to install the laravel-shield package (http://laravel-shield.com/service/stripe) to protect the Stripe webhook. After composer require laravel-shield/stripe I get the following:

Using version ^1.0 for laravel-shield/stripe
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

 Problem 1
   - Installation request for laravel-shield/stripe ^1.0 -> satisfiable by laravel-shield/stripe[v1.0.0].
   - Conclusion: remove stripe/stripe-php v3.23.0
   - Conclusion: don't install stripe/stripe-php v3.23.0
   - laravel-shield/stripe v1.0.0 requires stripe/stripe-php ^5.3 -> satisfiable by stripe/stripe-php[v5.3.0, v5.4.0, v5.5.0, v5.5.1, v5.6.0, v5.7.0].
   - Can only install one of: stripe/stripe-php[v5.3.0, v3.23.0].
   - Can only install one of: stripe/stripe-php[v5.4.0, v3.23.0].
   - Can only install one of: stripe/stripe-php[v5.5.0, v3.23.0].
   - Can only install one of: stripe/stripe-php[v5.5.1, v3.23.0].
   - Can only install one of: stripe/stripe-php[v5.6.0, v3.23.0].
   - Can only install one of: stripe/stripe-php[v5.7.0, v3.23.0].
   - Installation request for stripe/stripe-php (locked at v3.23.0) -> satisfiable by stripe/stripe-php[v3.23.0].


Installation failed, reverting ./composer.json to its original content.

So it seems like the stripe/stripe-php within the Spark installation is quite old? Since there already is a 5.7.0 version available (https://packagist.org/packages/stripe/stripe-php). Has anyone else been successfull installing this package using Spark?

0 likes
2 replies
bobbybouwmann's avatar

It indeed looks like you are using a version of stripe-php that is way too old.

I think you can upgrade the stripe implementation yourself. I have you tried to manually request the newest version of stripe through composer?

Also what version of Spark do you use? Maybe you need to update that first ;)

hellomars's avatar

Hi Bobby,

Thanks for the info. I am using the newest version of Spark so that should be fine. I could try to ask for the newest stripe-php but i am quite afraid to break the whole delicate Spark installation. I have everything running in a vagrant instance, perhaps I should try to make another one.

I am a bit suprised that Spark is using such an old version of the stripe package.

Please or to participate in this conversation.