Desktop Apps with neoPHP plugin support. - Forum

Forum Navigation
You need to log in to create posts and topics.

Desktop Apps with neoPHP plugin support.

As you know, currently VisualNEO Web can compile for NWjs where you can use NodeJS.
I have just discovered phpDeskTop project: https://github.com/cztomczak/phpdesktop

It works very similarly as it embeds a Chromium web browser (or Internet Explorer) but using PHP instead of NodeJS.
This means we can use any neoPhp command in our VisualNEO Web desktop applications! (file read/write and databases).

How to use (very similar to NWjs):

  1. Compile your app as a Web App.
  2. Download phpDeskTop for Windows.
  3. Unzip and delete the sample content inside the www folder.
  4. Copy your compiled app inside www folder.
  5. Edit the settings.json file located at phpDeskTop root folder to customize window size, hide the console, etc.
  6. Run your app by doucle-clicking phpdesktop-chrome.exe

If you want to use local SQLite or remote MySQL databases, you should copy php.ini file from neoPhp Server into phpDeskTop root folder.

I have succesfully tested SQLite VisualNEO Web sample apps :)
I will probably add this option on next release.

Let me know if you have any doubts and what you think about this possibility.

Vadim, CDY@44 and fkapnist have reacted to this post.
VadimCDY@44fkapnist

I just tried it out and it seems very good.

In fact it seems better than nw.exe because it will RunInRectangle in Visual NEO Win. It displays index.php. But you must first disable the console window, by editing the settings.json file.

 

 

Yay for new opportunities!!!

Thanks, Luis!!!

Thank you Luis !

I have tweaked the software to include PHP 7.4 instead of 7.1 and to load all neoPhp Plugin required libraries. I have also renamed the executable to neoAppDesktop.exe, changed the default icon and signed it with SinLios Code Signing Certificate. It should now support SQLite, ODBC, MySQL and SQL Server databases.

The download is available only for registered users from the downloads page (71 Mb):
https://visualneo.com/downloads

It is posible to strip-down it so it's much more lighter. Take a look here for more information.

Regards.

Vadim has reacted to this post.
Vadim

In fact it seems better than nw.exe because it will RunInRectangle in Visual NEO Win.

@fkapnist yes! and it's possible to use SendKeys VisualNEO Win command to the VisualNEO Web embedded application while using OnKeyDown VisualNEO Web command to execute any subroutine when a key is sent from VisualNEO Win.
It would be almost perfect if we find any two-way communication system.

Vadim has reacted to this post.
Vadim

Thank you Luis .

two-way communication system.

What would you consider two-way communication in this situation?

Example please..

What would you consider two-way communication in this situation?

I mean a way to call VisualNEO Win subroutines from VisualNEO Web and viceversa.

I mean a way to call VisualNEO Win subroutines from VisualNEO Web and viceversa.

I see.  I'll have to think about that one..  I know I can do quite a bit with Chrome in a rectangle, send keys and such to chrome and responding to those events in chrome.. but the other way is the problem I guess..

Maybe making changes with javascript to a local folder of the VisualNeoWin program would work.. Like with json, write data to a file from VisualNeoWeb or any web page.  Then monitoring for those file changes in real-time with a timer in VisualNeoWin desktop program, any changes read in the json and fire events.

It's possible?

 

It's possible?

@darbdenral yes, it's. But probably too complicated for most projects. I'm sure WebView2 Edge Chromium based solutions will arise soon and all this will be unnecesary.

Regards.