将PHP项目转换为桌面应用程序[关闭]

I've been developing a metasearch engine for private torrent trackers for about a year and a half. It's written in PHP (some parts in OOP) and JS, simply because that's all I know.
Now I want to make a desktop version, a standalone cross platform application.

Basically, what the app does is:

  • Send login data to the tracker. (file_get_contents())
  • Receive the generated cookies. ($http_response_header)
  • Access the search URL using the generated cookies. (file_get_contents())
  • Parse the HTML response with regex. (preg_match())
  • Show results of all trackers.

Mainly works with remote sites.

The way the program works now, allows the user to add trackers to search without touching the main program code. They function as plug-ins. That's the regex part and the most important one. I will maintain both codes (PHP and desktop), so it is important to be able to implement regular expressions in the same way in both applications.

So, I need help on choosing the right language, to do the same I'm doing with PHP.

I leave the program page to help you better understand what it's about.
Official site
SourceForge

Sorry if this is a a silly question, but I need guidance.
Thanks in advance, azeós.

This could be a good opportunity to learn some Java, but you might also consider a library that gives PHP access to a GUI framework like http://gtk.php.net/.

There's a related question on SO that might also give you some ideas.

One sneaky way to distribute your application without forking your development process would be to leave most of the code as PHP and to include a copy of PHP and a lightweight web server (such as nginx). Those two are licensed under BSD-style licenses, which seem to be compatible with distribution. At that point, your "desktop application" would be a local web server, which the user can access at "http://localhost:12345" (or your port of choice) in their favorite web browser.

If this idea doesn't seem ridiculous enough yet, you can also consider using Mozilla XULRunner, which is a cross-platform desktop application engine on which Firefox runs. You would likely need to combine that with the server listed above. Depending on how much XUL you are willing to learn, you may find that the extra Javascript permissions give you enough power to run the whole application within XUL alone.