Take the 2-minute tour ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

I want to know whether it is possible to develop desktop applications using the PHP language. In my case, I have never developed one with it.

If it possible, please give me referral link or detailed understanding of where i can improve my skills.

share|improve this question
    
Have a look at PHP Desktop that embeds php web-server and IE engine turning php scripts into native application. –  Czarek Tomczak Jan 13 '13 at 4:13
3  
Can a teaspoon be used to dig a tunnel? –  vartec Jul 22 '13 at 14:15
add comment

2 Answers

up vote 6 down vote accepted

PHP-GTK is an extension for the PHP programming language that implements language bindings for GTK+. It provides an object-oriented interface to GTK+ classes and functions and greatly simplifies writing client-side cross-platform GUI applications.

http://gtk.php.net/about.php

GTK+ is a multi-platform toolkit for creating graphical user interfaces. Offering a complete set of widgets, GTK+ is suitable for projects ranging from small one-off tools to complete application suites.

http://www.gtk.org/

share|improve this answer
1  
That link is often referred to, but has anyone heard of one app made with php-gtk? Just one? Even a bad one? I mean even their own list of application (gtk.php.net/apps) is totally and utterly empty. I don't mean to say php-gtk is a stalled, or unuseful project (never used it). But I'd wager it doesn't have very good support, and not much community help. –  Xananax Jun 20 '11 at 17:23
    
I think using something such as air or appcelerator titanium fits the bill better (although I haven't tried it yet either). –  Xananax Jun 20 '11 at 17:24
    
-1 PHP GTK was dead, long before you answered the question. @Xananax Titanium is a good alternative, but it's still not there yet. –  Yannis Rizos Dec 29 '11 at 13:07
    
Yup, I have tried it since then, but there are a lot of bugs and missing docs (no bashing of titanium intended, the eclipse-based IDE is very cool, but it still needs a lot). Air is proprietary and dev is hard under linux. I am exploring the possibility of building my own wrapper around webkit through QT. –  Xananax Dec 29 '11 at 14:11
add comment

It's possible, but it's rarely done. PHP was designed as a language for generating HTML and its functions aren't helpful in desktop applications.

Things will be easier if you learn another language.

PHP-GTK, PHP-QT, and PHP-Wx exist but don't have any significant community. Trying to make a deployable app will be difficult.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.