Writing Windows applications in php example

I recently discovered that you can write windows applications in php. Can someone provide a link to a windows application (Windows 7) written in php so that I can install and run. I am still skeptical that this is possible. Seeing is believing

Change There are a lot of broken links on the app page of the phpgtk community site mentioned in several answers. I am looking for an exe that I can download and install to prove to me that this is possible (and practical). Many applications on the phpgtk website are a joke (tick tac toe, click the button as fast as you can, etc.), are there any serious desktop applications written in php, or should I just give up the idea now and to pursue C ++ for desktop applications?

+4
source share
4 answers

As far as I know, PHP-GTK seems to be dead or at least very inactive. Not that he ever had a very active community ...

There are also several other PHP GUI projects, I personally would not use them, for the simple reason that IMHO PHP lacks functions for writing serious applications with a graphical interface, the biggest is probably a lack of threads or any other serious features of multiple processing if for that matter ...

There is pcntl_fork() that works (used several times), but it has a major flaw that it doesn't work on Windows. It can also be argued that using fork() worse than using threads, but this is another discussion.

In particular, with the graphical interface, you probably want to get some kind of thread support, let's say your graphical interface does some operation that takes 20 seconds (copy files, upload something, etc.), you usually don’t want to so that the user interface freezes during this operation, and you can also run multiple operations at the same time. I'm not sure how PHP-GTK solves these problems if they solve them at all, but the lack of real built-in language support will still cripple you.

There are other disadvantages of PHP, but they are more general, although you are likely to come across them earlier on desktop applications than on web applications (for example, error handling, OS portability, proper support for UTF-8, etc.) .

There are many other programming languages ​​that are much better suited for this particular job, and most of them have the advantage of having (a lot more) community than PHP-GTK, which means more documents, for example, more people apply for help etc.

C ++ can be a good choice, Python, Perl, Ruby, C #, etc. etc. can also be considered. Wikipedia has an extensive list: http://en.wikipedia.org/wiki/Comparison_of_programming_languages

My advice: choose the one that looks β€œOK” and meets your needs, and start hacking. If you don't like it, try something else .;)

+4
source

WinBinder is an open source extension for PHP, a scripting programming language. This allows PHP programmers to easily create their own Windows applications.

+2
source

This should be what you are looking for :)

http://php-gtk.eu/en/apps

+1
source

There is an amazing extension called WinBinder , I worked on it. its very easy and simple ... here's what you can do with it a sample of VBM2

there is also PHP-GTK, which is a little hard to learn for people who have not previously used desktop applications. however, PHP-GTK is powerful and has better support, and you can develop applications on cross-platform platforms.

0
source

Source: https://habr.com/ru/post/1394262/


All Articles