8

I have quite a few years experience of developing PHP web applications, and have recently started to delve into Python as well. Recently I've been interested in getting into desktop applications as well, but have absolutely no experience in that area. I've seen very little written about PHP-gtk and wonder whether it's really a good area to get stuck in to.
What I'm really looking for is something that will allow me to quite quickly develop some decent small/medium sized apps, and be able to deploy them in Linux and Windows. Something in Python or PHP would be great (but I'd be happy to learn something else if it has big advantages).

What do you guys recommend?

Thanks

John Kugelman
  • 349,597
  • 67
  • 533
  • 578
Christwo
  • 647
  • 2
  • 7
  • 10
  • For PHP, I think winbinder is a strong choice. – Dinah Jun 22 '09 at 21:17
  • For Python, [PyQt](http://www.riverbankcomputing.co.uk/software/pyqt/intro) is my favorite -- a really strong framework, with rich functionality and excellent integration with Python, as well as superb tools e.g. for cross-platform UI design. – Alex Martelli Jun 22 '09 at 21:21
  • [Appcelerator Titanium](http://www.appcelerator.com) now supports building desktop applications using PHP (in addition to Javascript, Python, Ruby, too). – jhaynie Oct 18 '09 at 04:49
  • [Appcelerator Titanium](http://www.appcelerator.com/products/titanium-desktop/). Write in Python. Create executables for PC, Mac, and Linux. – Nosredna Jun 22 '09 at 21:24

4 Answers4

12

Building applications in PHP with GTK is possible to create client-side cross-platform applications, but I don't necessarily think it's the optimal choice for GUI development...

Here are some links:

http://gtk.php.net
http://www.cweiske.de/phpgtk.htm
Gnope.org
kksou

dreadwail
  • 15,098
  • 21
  • 65
  • 96
2

Python and Java are both excellent for working on both Linux and Windows environment. They are generally hassle-free as long as you're not doing any OS specific type of work. Python for creating desktop apps is fairly simple and easy to learn as well if you're coming from a PHP background, especially if you're used to doing object oriented PHP.

AlbertoPL
  • 11,479
  • 5
  • 49
  • 73
0

Why would you like to develop a desktop app in php??

Get yourself a descent programming environment (c/java/c#/) instead of abusing php

especially with c# and java you get pretty quick very nice results. And both are cross platform (although java is easier for cross platform stuff).

C(++) in combination with QT or GTK is also possible, but there the results appear slower

Henri
  • 5,065
  • 23
  • 24
  • Downvoted, as I'm sure the entire development world associated with PHP-GTK would disagree that this is "abuse". – dreadwail Jun 22 '09 at 21:23
  • 2
    They can disagree, but that doesn't mean it's not an abuse. ;) – mipadi Jun 23 '09 at 02:40
  • 2
    If php was a good language, all schools and universities would teach people php instead of c, java, c#, delphi, pascal. Ive seen the latter languages been taught in programming courses at a lot of places, but never php. – Henri Jun 23 '09 at 19:10
  • 2
    I'm pretty sure you're missing the point here of the question asked. The questioner preferred a PHP option as they know that language well - it's fine to point out alternatives, and by no means am I saying PHP is the best solution for desktop applications, but providing information for the question asked is priority. The additional answers on this page address the latter part of the question 'happy to learn something else if it has big advantages', but bashing one language isn't the right approach in my opinion. – dreadwail Jun 23 '09 at 19:18
  • In addition, your comment is ill-informated, since a C++ solution isn't a slower option by any means in terms of 'results', nor are 'c/java/c#' programming 'environments' - they are languages, 2 of which are bytecode interpetted, one of which is not, and writing GUI applications in C isn't really ideal. C# and Java are excellent solutions, however, and there is a wealth of information. – dreadwail Jun 23 '09 at 19:21
  • Java and C# are both languages and environments. Choosing the language of java or C# opens up a world of libraries, IDEs, virtual machines, deployment options, etc. that I would certainly describe as more of an environment than a language. – marr75 Aug 28 '09 at 16:30
0

Well its too late to answer i guess but still for the sake of information may I suggest Open Application Platform (OAP) as a possible solution. OAP allows for PHP/MySQL applications to be distributed as installable Windows(tm) applications.
I stumbled upon it while I was looking for porting a PHP app to desktop and found this. Worked great for me. No extra tags for window creations like in winbinder etc.

Amit Kumar Jha
  • 599
  • 2
  • 8
  • 18