Creating a Distributed Standalone Program in PHP

I decided to code some PHP applications that should run autonomously in the user machine. However, I cannot find a convenient custom installation wizard to create a local server where the script will be executed. Any ideas?

PS: Here is an example of what I want: http://www.nolapro.com

+4
source share
5 answers

You can go the old school route and try using PHP-GTK.
Text tutorial here: http://www.kksou.com/php-gtk2/References/Compiling-standalone-PHP-GTK2-applications-on-windows-using-PriadoBlender.php

or you can take the route that I think promises a lot more: Adobe AIR + PHP
It has an added bonus to work on any platform!
Video tutorials here : http://www.vtc.com/products/Adobe-AIR-PHP-Development-Tutorials.htm

There also appeared a new player in the game Appcelerator . It allows you to write code in any language you want (PHP, Ruby, Python, etc.) and compile it for the selected platform (iPhone, Android, Windows, OSX). Parts of it are still beta, but it looks incredibly smooth and cool, and there are many tutorial videos. http://www.appcelerator.com

+6
source

I hate defending it because it is just so wrong. You will probably be better off using a language intended for use in stand-alone applications if you intend to do this often or in production settings.

With that said, my colleague used Bambalam PHP for the EXE compiler for this. He really had a profitable product built around him.

Bambalam will generate an EXE that does not rely on external DLLs based on your PHP code.

http://www.bambalam.se/bamcompile/

+3
source

If you have written webapp, you might want to deploy it on the client, perhaps use wapache, which is a standalone apache bundled with your application and built-in (IE) browser inside. http://wapache.sourceforge.net/

+1
source

The new PHP 5.4 and 6 feature can help you, the embedded web server. http://php.net/manual/en/features.commandline.webserver.php

With this function, you can host a local php application without an external web server and access the local host.

+1
source

If you are really talking about a client application, you are really mistaken.

If you want the server + browser to deploy your web application, so it runs locally, you can check three options:

1) Deploy a simple webkit browser (you can get a QT Webkit Browser in 30 lines of code) and an Apache server that is installed somewhere autonomously (not through an apache control script, since it uses port 80 and probably conflicts with another installed web server.

2) Look at the Firefox PRISMA solution. I only read about this in a news article, but it wraps firefox around a single start URL. You must deploy the web server in the same way as

3) Try wrapping it as an HTA application. Find the relevant information on MSDN.

I would prefer (1), as you can add special application interaction code if necessary.

0
source

All Articles