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

eden's avatar
Level 1

Possible to convert laravel project to PHP or similar

Hello everyone

I am not sure this is possible but is there a way to convert a laravel project into raw PHP/HTML or how can I view the code of the project in raw format for example I load a index.php and view the complete source code as you would in a browser if that makes sense.

Thanks

0 likes
10 replies
Snapey's avatar

No, it does not make any sense. Laravel is php code.

eden's avatar
Level 1

What I mean is can I export pages in thier entirety such as index.php, welcome.php to view the source as if I hadnt used a framework?

Sorry bare with me while I try to get my intentions across.

Snapey's avatar

only if you access the page in your browser, right click and view the HTML source.

eden's avatar
Level 1

Ah right ok thank you I will look into that, bit of a dumb question but thanks for your help.

jlrdw's avatar

Huh? You made me scratch my head on this, if you have the laravel project you have the source code. A view source code won't give controller code, model code, etc. It only shows frontend html code. Sounds like something is rotten in Denmark (an old expression).

LalitSharma's avatar

please tell me can i convert laravel files into core PHP?

Wakil_Ahmed's avatar

Maybe he meant converting the Laravel project to raw PHP, without the MVC pattern.

Please or to participate in this conversation.