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

Raimondas's avatar

How to add laravel code to plain php project ?

Hey is there are any ways to create photogallery in laravel and include it in plain php project ?

0 likes
4 replies
bashy's avatar

Depends what part of it you want to do in "plain" php.

Raimondas's avatar

Basically I need to write the gallery script from 0. And then I just want to make it usable in plain php project. In new directory.

zachleigh's avatar

I would make it a separate package. Write the code in a normal php program outside of laravel and then make a laravel service provider so you can easily use it in a laravel project.

jlrdw's avatar

Or just do the project in Laravel. Why not?

Please or to participate in this conversation.