Package my php project to exe

I have a school management Portal System project developed with php, Javascript. I hosted it on Xammp local host. Now I want to repack the whole project as a single exe apps so that end user can just Intal it on their system and start using it without any configuration.

Pls any clues or applications to get this done would be appreciated. Thanks

This is not a simple task.

You have a few options:

  1. Write a windows installer that installs XAMPP, imports your database, sets up the database users then copies all your php/javascript files into the htdocs folder and starts the servers

  2. Package your project using a tool such as electron. and use it’s packaging tools. You would need to package the PHP executable and write a custom server which called the embedded php executable when a .php file was asked for. The advantage of this is that you can have a desktop like application rather than needing a web browser.

  3. (The best option) Create a docker project which hosts your application. You can then share the project among any PC. You can then package the entire application and share it with anyone.

4 Likes

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.