Is it possible to create and package in Electron site with PHP pages (the website application)?

I have a small application with php pages, I want to pack in Electron to run from the desktop, but as far as I know Elektron's possible to do with Javascript only.
Is there any workarounds or alternatives?
April 3rd 20 at 17:47
3 answers
April 3rd 20 at 17:49
Solution
With the help of Electron is impossible, but there is phpdesktop. You can play with him. But if PHP-Beck is not very complicated it is better rewrite it in js, if you want to use electron.
April 3rd 20 at 17:51
If PHP evaluates for each query (i.e. the data is not static), then no, you cannot.
April 3rd 20 at 17:53
If you need an app that will client to communicate with the server(your PHP will be on the server), then Yes. No problem. But if the app is offline, there is no (or rather Yes, but it will be several levels of crutches)
Hmm okay. PHP is on the server, but then it's all in the packaging Electron, because there is a configuration goes through the JS files, which for example prescribes the path to the application home page, and as far as I know, if you set the path to the PHP file, it does not launch the app. - nikko.Medhurst commented on April 3rd 20 at 17:56
@nikko.Medhurst, in the electron, you will have a trivial AJAX handling to a web server with PHP. In the end, this app will require communication with the server. If the business logic allows, you can use a WebWorker and require connection to the server occasionally. But to abandon the connection with the server still does not work. - esperanza_Kuhlman commented on April 3rd 20 at 17:59
Understand now - nikko.Medhurst commented on April 3rd 20 at 18:02

Find more questions by tags PHPWeb Development