Create a desktop application using PHP
Asked Answered
Y

4

8

I have a PHP/MySQL powered SaaS application which I want to deploy an offline version of. I don't want to use any of the numerous PHP GUI tools that are out there, as this would require rebuilding the GUI and I want it to look exactly the same as the web version.

I want to run Apache/MySQL servers (or something similar) on the clients' systems and somehow compile the PHP code so the source code isn't visible. What is the best way of doing this? Ideally I want to have one .exe file that would start/stop the server.

The following is a very similar question, but it is related to Python and not PHP: Create application for web & desktop

Yorgo answered 1/1, 2013 at 21:56 Comment(1)
You might also look at groups.google.com/forum/?fromgroups=#!topic/web2py/aVbouI7Dby8Thorium
L
5

You can "hide" the source code by creating a compressed phar archive.

As webserver you can use PHP's built in webserver.

As an offline database, normally sqlite is fitting, if you need Mysql, there is an embedded version of Mysql available as well so you can embed that as well, probably through a PHP C extension.

Lancashire answered 1/1, 2013 at 22:4 Comment(1)
To take it a step further, package your application with PHP Nightrain. So, you won't have to worry about the user installing PHP, Apache, etc... on his computer. Here's a quick youtube video youtube.com/watch?v=GXt8erPLf4oSelfforgetful
M
1

TideSDK would be good option. They provide better support.

Mcrae answered 11/6, 2013 at 11:29 Comment(0)
C
0

Server2go + Ioncube could be your best o

Creep answered 26/2, 2013 at 0:28 Comment(0)
J
0

There are some tools and technologies that can help in that. Check this list from sitepoint: 3 Ways to Develop Cross Platform Desktop Apps with PHP, and here is an example of application done with PHP: Create your first Desktop Application with PHP and PHP Desktop

Ji answered 3/6, 2015 at 20:16 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.