Is it possible for me to create a program for my company that is executable only with PHP and MySQL? Or I'll need other languages, like C, Java, etc ... In case the program is internal only.
Is it possible for me to create a program for my company that is executable only with PHP and MySQL? Or I'll need other languages, like C, Java, etc ... In case the program is internal only.
Yes, it is possible. It has a huge list of PHP compilers that generate executables. Many are no more. Their level of quality is variable, and in practice "nobody" uses it. Some:
Why do you have so many? Because no one lends :) One tries to fix the defect of the other. I just do not give details because it's not the focus.
Do you want to make an "enterprise *" application? At the very least, think about Hack that was created for this, but neither so that it does not use a hammer just because it thinks screws are similar to nails, so it should be a good solution. will deny the answer by saying this, it seems "Facebook fla-flu" where the person does not want to see the obvious.
In fact if what you are doing is not a backend web, do not even think about PHP. If you are thinking of an application where the web is clearly not the best solution, you have already chosen the wrong way. And most applications are not suitable for web. It is again the problem of hammer and nails. The person only knows how to use the hammer, so she thinks every problem is a nail , ie it must be web, even when it does not give any significant advantage and brings disadvantages. It's what I've seen these days about the #. p>
For what PHP was created, ie sites and applications that need to be web even if not very complex, there does not need an executable.
As a complement, do not use PHP-GTK .
PHP is an interpreted language, not compiled. The goal is not to generate desktop applications, but to preprocess HTML.
It is even possible to build a desktop application with PHP (see examples in the other answers), but it seems to me a bit of a gambiarra. If your goal is to create a desktop application, it is best to use a language / framework that is geared towards that.
Another thing is that we do not know very well what you want to do. If you have a backend with PHP and MySQL and a web front end, turning this into "executable PHP" is throwing away the entire front end and redoing it. For example, when you are prompted to use PHP-GTK, you would have to redo the entire user interface with GTK and throw away everything that is HTML, CSS, JS. Is that really what you want? Most likely - and simple - is that you just want to wrap a front-end web as desktop application. For this you have several tools, such as electron and nw >.
If yes, PHP GTK gives you this possibility. link