shammadahmed's avatar

PHP For Desktop Apps

Can PHP be used to develop Desktop apps for Windows and Mac?

0 likes
13 replies
ionutbajescu's avatar

Definitely yes. Recommended? Hell no!

If you want something really simple to develop apps on Windows, I'd go with AutoIt. Though, it won't work for OS X.

andy's avatar

I wouldn't use php. Python or Ruby possibly but since C variants are more than likely a better choice why even Python, Ruby or Java?

lol, Java ... we are doing our best to get rid of Java on the desktop.

jlrdw's avatar

Yes, what do you suppose you have in a development enviroment, a desktop application. But if you need to have multiple computers have access to the programs, you need to configure a client server. If that's the case where you are not using it on the web, why would anybody want to do such a thing, when there are much more efficient databases for client server.
I used to use visual foxpro, and later microsoft access.
The first step for you is to figure out exactly what it is you're trying to do.

ohffs's avatar

@shammadahmed you might want to look into C++ and QT. Or I think the Python bindings for QT are still ok too. There's also Mono but I'm not sure of it's status these days - thankfully it's some time since I've had to write a desktop GUI :-)

martinbean's avatar

@shammadahmed Did you even read my post? I told you:

You’ll need to use a C-based language to develop cross-platform desktop apps.

thomaskim's avatar

lol, Java ... we are doing our best to get rid of Java on the desktop.

Is there a reason why? I'm not as experienced in Desktop applications.

kylestev's avatar
Level 20

If you're experienced with JavaScript, Github's Atom editor has an open source project called Electron that people to build cross-platform Desktop apps in JavaScript using Node. It embeds an instance of Chromium (the open source browser/project Google Chrome is built from) which is used to display your views. Since you're embedding Chromium, you get the power and development tools you have in Chrome such as the Console, Network tab, and other useful features like that.

It's gaining a lot of traction and some well known apps are already using Electron such as: Visual Studio Code (code editor), Slack (real-time collaboration), and Ionic (cross-platform framework for building mobile apps using AngularJS).

2 likes

Please or to participate in this conversation.