Laravel with PHP Desktop

66 views
Skip to first unread message

Jeremias Toco

unread,
Jan 15, 2025, 10:16:19 AMJan 15
to PHP Desktop

Hi everyone,

I hope you’re all doing well. I’m currently working on a project where I need to transform a web application built with Laravel into a desktop application using PHP Desktop. After some research and study, I realized there are a few technical specifics I’m still struggling with.

Current Scenario:
  1. The project was developed with Laravel and uses MySQL as the database.
  2. I already have the application hosted on Hostinger, where it’s working perfectly.
  3. Now, I want to bring this application to the desktop environment while keeping the main features and database integration functional.
My Main Questions:
  1. What’s the best approach to integrate Laravel with PHP Desktop?
  2. How can I configure the environment to run the application on PHP Desktop, ensuring that routes, views, and the database work properly?
  3. Is it possible to avoid relying on external servers by keeping everything local? If so, how can I configure MySQL for this scenario?
  4. Are there any specific configurations in composer or artisan that I should be aware of when adapting Laravel for the desktop?
Tools I’m Using:
  • Laravel 10
  • MySQL
  • PHP Desktop

Czarek Tomczak

unread,
Jan 16, 2025, 3:47:11 PMJan 16
to PHP Desktop
There is this PHP Frameworks support wiki page, but I haven't updated it with latest PHP Desktop. See https://github.com/cztomczak/phpdesktop/wiki/PHP-frameworks-support#laravel

You can try searching this forum for Laravel.

Yes, you can make everything local. SQLite is recommended. MySQL GPL license doesn't allow redistribution, but with PostgreSQL you should be fine. Saw Maria Portable recently (https://www.mariadb.education/install-portable), but I think it could also have license restrictions. You would need to customize your installer so that it includes database binaries and setups first database. On PHP Desktop launch a PHP script should launch database process in backdound. You could use some useful tools from here: https://github.com/cztomczak/phpdesktop/wiki/Knowledge-Base#useful-tools

I don't know on the last question.
Reply all
Reply to author
Forward
0 new messages