这里有人使用 PHP-GTK 吗? 有更好的选择吗?
我提出了一些关于 PHP-GTK 的问题(只有 4 个 php-gtk
标记的问题,其中三个是我的),但我最终回答了自己,因为没有人回答它们。
我知道这是一种奇怪的语言选择,但我对它很感兴趣,因为它可以在多个操作系统上运行,而且我可以重用我的一些代码(而且应用程序最终看起来不错,而且我可以在 NSIS 中制作小安装程序,这真是太棒了) )。
有没有更好的替代方案,它是免费的(如自由)并且可以在多个平台上运行?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
Python 和 Ruby 都可以使用 GTK 库。 这些可能对您来说是更好的语言选择(您肯定会在这里得到更多人回答您的问题:)
请参阅 Ruby 对于 GUI 开发有好处吗? 和 https://stackoverflow.com/questions/115495/is-python-any-good-for-gui-development 分别获取 Ruby 和 Python 的链接。
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.
是否必须是 GPL,或者是否可以接受其他开源解决方案? Python 有更成熟的 GTK 集成,并且它是开源的,但不是 GPL。 您可以将 python 脚本捆绑到带有运行时的可执行文件中。 您可以为包括 Windows 在内的许多平台生成这些可执行文件。
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.
回答你问题的第一部分。 是的 - 我使用 php-gtk。 这可能是一段美好友谊的开始。
To answer the first part of your question. Yes - I use php-gtk. This could be the start of a beautiful friendship.
从另一个侧面回答你的问题。
其他可以用 PHP 编写的 GUI 应用程序包括 wxWidgets 和 Qt,两者都有可用的 PHP 绑定:wxPHP 和 PHP-Qt
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