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

Bossino's avatar

Connecting a Laravel project in an existing PHP project

Hello. I'm gonna make a new Laravel project and I will connect it in an existing PHP project because the Laravel project I gonna make is part of the existing PHP project system. Is it that possible that it can merge my Laravel project to PHP project? And my concern is, the session of the logged in user if the user is login in a PHP app, he is also logged in a Laravel app?

0 likes
2 replies
Tray2's avatar

My initial thought to this is that even though it's technicaly possible to do this it migth not be a good idea. It's a bit like mixing beer and wine, you can do it but you are most likely to suffer from it.

My recommendation is to make everything in the same way, both for maintanability and for your own sanitys sake.

As I see it you have two options.

  1. Stick with the old project and continue developing your project there.
  2. Start over and build everything in Laravel.
Bossino's avatar

The existing PHP project is already built by my other members and I'm still new member in their team. I used to build projects with Laravel that's why I'm thinking if I gonna use Laravel.

Please or to participate in this conversation.