4

I had made some questions regarding PHP-GTK (there are only 4 php-gtk tagged questions and three are mine) and I end up answering myself because no one answer them.

I know it is a strange language selection but I was attracted to it because it runs on several OSs and the fact that I can reuse some of my code (also the apps end up looking good and I can make little installers in NSIS that just rocks).

Is there a better alternative, that is free (as in freedom) and can run on several platforms?

halfer
  • 19,824
  • 17
  • 99
  • 186
levhita
  • 2,161
  • 2
  • 21
  • 31

4 Answers4

2

Does it have to be GPL, or are other open source solutions acceptable? Python has much more mature GTK integration and it's open source but not GPL. You can bundle python scripts into an executable with a runtime. You can generate these executables for many platforms including Windows.

sk.
  • 6,336
  • 5
  • 38
  • 46
2

Both Python and Ruby can work with the GTK libraries. These may be better chocies of languages for you (you'll certainly get more folk here answering your questions :)

See Is Ruby any good for GUI development? and https://stackoverflow.com/questions/115495/is-python-any-good-for-gui-development for links for Ruby and Python respectively.

Community
  • 1
  • 1
David Arno
  • 42,717
  • 16
  • 86
  • 131
2

To answer the first part of your question. Yes - I use php-gtk. This could be the start of a beautiful friendship.

JW.
  • 4,821
  • 5
  • 43
  • 60
1

To answer your question from the other side.

Other GUI applications that can be coded in PHP include wxWidgets and Qt, both of which have PHP bindings available: wxPHP and PHP-Qt

MacroMan
  • 2,335
  • 1
  • 27
  • 36