It embeds a web browser, a multi-threaded web server and a PHP interpreter. All embedded into a single application, a portable folder that you can easily distribute to end users by packing it to zip archive or by making an installer for your application. The package with Chrome embedded has no external dependencies, everything is included in phpdesktop binaries and works out of the box on a user's computer. You can create a standalone executable for distribution with the help of the Inno Setup installer.
PHP Desktop is released under non-restrictive license, thus it is free for commercial use. It is one of the top goals for PHP Desktop to be stable, to work reliably. PHP Desktop does not suffer from memory leaks. Fundings for other features submitted in the issue tracker and the ones presented on the PHP Desktop Pro wiki page are also possible, just let know Czarek.
Hell, if you want a scripting language, why not just go with Python? Everything goes, as long as we avoid having to bundle a server with the whole shebang, right?
However, this also means some more advanced aspects are unavailable, and you can only really use it for very rudimentary apps. The command windows must stay open if you want to use the app, and this might be more than a little confusing to the technically illiterate people of scenario 2 above. If you want to launch several different nightrain apps, you need to change the port in settings. MySQL is not bundled and installing it alongside the regular stack is no simple matter. By far the biggest drawback of the app is that it uses WX widgets to power the headless browser, and on Windows, this seems to come down to IE7.
You install wxPHP as a separate program, which then gives you support for execution of. Fortunately, the client accepted it that way. I made the application using EasyPhp. Definitely, it wasn't the perfect solution. Even though I did not have any problem, I cannot consider it as a good solution. I was just lucky. I think you can understand the real problem we can face when it comes to desktop applications with PHP. I knew they must be a way; otherwise, my skills in PHP would have been used only for websites.
PHP Desktop comes to reduce if not to solve all these problems and gives a new horizon of software development experience:. Basically any PHP programmer would have liked to create any desktop application.
Create an executable. Any client can simply install the application following an installation wizard without any struggle or any need of the programmer. Unfortunately, if you are really into PHP programming you should know by now that isn't actually possible. Since PHP is an interpreted programming language you can't compile your project files into a single executable. Most programming languages that are specialized in desktop application like Java have some libraries that provide then some set of elements button, menus, color, shapes, etc.
People have tried to create some extensions like PHP-GTK to provide such ability to the language, but still the problem is remains not totally solved. We can't imagine the limits of CSS in terms of designing. So, that's where PHP Desktop takes its power from. PHP Desktop itself is a software that can embed yours in itself. PHP Desktop Embeds all services your application may need before running. To provide universal interfacing it embeds a browser actually Chrome or Internet Explorer.
So there is no need to install any other server or parser before using it. I downloaded the one embedding Chome. No matter the one you have downloaded, what matters the most is the highlighted file, it is an executable.
PHP Desktop is very smart. When you clicked on the launcher, it went in a special folder to look for any available application, and this special folder is nothing than the www folder. Go ahead and open the www folder you should see something like this:. These files are sample file to help you know that PHP Desktop can do everything these files are doing.
Among them, you have functionalities like cookies, environment variables, forms, iframes, javascript, etc. That means your PHP application can do almost everything. By default, PHP Desktop prompts up two windows. This is where your application will reside. Follow here.
Some of the tutorials are here. Here is youtube tutorial Here is another useful tutorial. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Can we create Desktop application in php [closed] Ask Question.
Asked 5 years, 4 months ago. Active 5 years, 4 months ago. Viewed 24k times.
0コメント