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

msyaukat's avatar

converting to php 7.

I wanted to install a package that handles comment using vue on my Laravel project. Upon installing, it wants me to update to php 7.1.

faustbrian/laravel-commentable 2.1.4 requires php ^7.1 -> your PHP version (5.6.28) does not satisfy that requirement.

should I continue? will there be any conflicts?

0 likes
5 replies
vmitchell85's avatar

You'd have to check all your other dependancies to see if PHP 7.1 will work with them. If this is a new project then you'd probably be okay.

We'd need a lot more information to advise properly though.

SaquibRizwan's avatar

There are many more things you will need to check before doing that. Because it may affect your application. Which laravel version you are currently working on? Some of the server information will be good as well like, Is there any other application is running on your server.

Cronix's avatar

What's your environment right now? If you used homestead for dev this would be very simple to test, since it includes php 5.6, 7.0, 7.1 and 7.2 out of the box. You'd just tell that site to use 7.1 in the homestead config and test it. Create a new git branch and use/test that package.

msyaukat's avatar

hmmm ... these are the stuff that I know:

laravel version 5.4.28

I'm using a local server mySQL

.....

I've searched for how to update php. why does it looks complicated?

@vmitchell85 @SaquibRizwan @Cronix

biishmar's avatar

@msyaukat faustbrian/laravel-commentable, this package using some php 7.1 functionality thats why it requires php 7.1..

if u r insist on using this package, i would recommend upgrade to php 7.1, this might gives u error that display in your page or stop accessing it..

Please or to participate in this conversation.