10

I am a college level student. From my school life I was very interested to website creating, and thats why I came to learn PHP language, now I'm able to create a PHP app in website, but I want to create an offline windows app using this language and Database.

But as I am student of college, CSE or Computer Engineering is not my textual study, thats why I cant learn Java or C/C++ anything other else.

So you profassional programmers, can you help me out?

DG_
  • 246
  • 1
  • 3
  • 15
  • 3
    For windows offline application I think it is better if you learn something like C# – Raj Mar 23 '14 at 18:42

2 Answers2

18

Yes, you can.

Here some ways for this:

  • Command Line PHP — is for developing shell applications with PHP;
  • PHP Desktop — is open source project for developing native desktop GUI applications using web technologies (PHP, HTML5, JavaScript & SQLite);
  • WinBinder — is a open source extension that allows PHP programmers to easily build native Windows applications;
  • Phalanger — is implementation of PHP, rewritten in C#. You can get access to C# libs;
  • ExeOutput — this makes it possible to create applications in native format for Windows with PHP, JavaScript and HTML;
  • PHP GTK — is an extension for the PHP programming language that implements language bindings for GTK+. But it is not supported from 2010;

Of course, maybe there are other ways, but I recommend you for creating Windows apps use something like C++, Python, Java, C#, etc. It's save your time and nerve.

  • 1
    I will give you an other that work`s very well https://sourceforge.net/projects/phpbrowserbox/?source=recommended. I have try the others that you say but my problem is that I want to make a single exe file with portable server binary files,an exe with the portable server inside,that execute the exe file to run portable server without extracting. Thank you! – garatu Apr 24 '16 at 01:22
  • 1
    There is `[wxPHP](https://github.com/wxphp/wxphp)` which I think is much cleaner and still in devlopment – Salem Apr 11 '22 at 15:16
4

I would recommend you to learn c# or Java rather than using some PHP to Win projects. But answer is yes, You can look at this very good stackoverflow post which will probably answer your question or at least will give you a good starting point.

Community
  • 1
  • 1
Jaroslav Kubacek
  • 1,387
  • 18
  • 26