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

matt@monocode.com's avatar

Dependency issues when installing laravel 5.0 on PHP 5.4.16

My client's server only has PHP 5.4.16 installed and tried installing Laravel 5.0 as it should be supported (based on requirement specifications) but when trying to install the application we keep getting errors in regards to dependencies requiring PHP 7. We've tried modifying the composer.json but it seems to be a downward spiral of more errors. Is there a way to install on a server using PHP 5.4.16?

0 likes
3 replies
Talinon's avatar

What dependencies are causing the errors?

matt@monocode.com's avatar

doctrine/inflector v1.2.0 laravel/framework v5.5.26 (shouldn't this be v5.0.x if I'm trying to install laravel 5.0?) swiftmailer/swiftmailer v6.0.2 symfony/event-dispatcher v4.0.2

are a few.

Talinon's avatar

Right, but there is likely a package that is requiring the dependencies you just listed. Around the start of the error message it should state there is a problem with a package?

Please or to participate in this conversation.