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

Elemenop's avatar

Converting laravel web app into desktop app

I made a laravel web app program. Is it possible to change it into a .exe program? I've tried to use phpdesktop but the .exe won't run.

  • laravel 8
  • php 7.4.27
0 likes
4 replies
jlrdw's avatar

Php isn't going to compile to an exe. If you want an exe, look into desktop apps with C# or use C.

Or just use on desktop as is via localhost.

Elemenop's avatar

@jlrdw thanks for the answer. The problem is, the admin first want me to build a web app. So I decided to use laravel. But the time I finished the project, the admin want to convert it into an exe :''

is there any possible way to run the web app as desktop app? I did my research, I found there's a package called silviolleite/laravel-pwa to change laravel web app to be a laravel pwa. Could PWA run without serving localhost like the way we could run a web app? There's no database in my laravel program, but there's some library I use and require it via composer.

NoLAstNamE's avatar

@Elemenop

The problem is, the admin first want me to build a web app.

Just tell them this... "You asked me to make a web app so I did.", and then explain what's the difference between a web app and a desktop app.

Please or to participate in this conversation.