Compiled PHP? GUI?
Moderator: General Moderators
Compiled PHP? GUI?
I've noticed a few tools are starting to emerge that allow you to compile PHP as a stand-alone programs. Since I like PHP more than most languages I've used in the past 30 years, I would love to see something like Netbeans Java GUI builder interfaced with PHP that could be run in a virtual engine (PRE?) or even cross-compiled. The GUI could handle the states/events and the underling php could do the work.
I write a lot of scripts that would be nice tools as a binary (even with no GUI) and while I wouldn't expect high speed performance, something portable without the need for installing php would make my code much more useful to people who don't want to install all the php and libraries and learn the CLI.
I write a lot of scripts that would be nice tools as a binary (even with no GUI) and while I wouldn't expect high speed performance, something portable without the need for installing php would make my code much more useful to people who don't want to install all the php and libraries and learn the CLI.
Last edited by Eric! on Tue Sep 06, 2011 8:25 am, edited 1 time in total.
Re: Compiled PHP? GUI?
I don't get you.
Isn't HTML is the natural GUI for PHP? Aren't there WYSIWYG design tools for HTML? I don't use any though as I prefer to hand code the presentation layer pages to keep them simple.
Isn't HTML is the natural GUI for PHP? Aren't there WYSIWYG design tools for HTML? I don't use any though as I prefer to hand code the presentation layer pages to keep them simple.
Re: Compiled PHP? GUI?
No. I'm talking about moving php away from html mentality and into a gui environment like QT4 or gnome or something where you could use PHP as the language. Right now if I write a nice backend tool in php that I want to share with others I usually have to convert it to Java and add a gui to it so it is cross platform and executable and people can interface with it without running it from a command line and options.
Sure if you're using php as it was originally intended on a server then you're not interested and you don't need a gui, but php has grown much more powerful that I think it is time to be able to write cross platform aps with it with gui's. I know I would love it.
I mean anything that I write in python or java I could easily do in php, but there's no gui or cross platform environment for it.
Sure if you're using php as it was originally intended on a server then you're not interested and you don't need a gui, but php has grown much more powerful that I think it is time to be able to write cross platform aps with it with gui's. I know I would love it.
I mean anything that I write in python or java I could easily do in php, but there's no gui or cross platform environment for it.
Re: Compiled PHP? GUI?
There's php-gtk (fairly stagnant project if you ask me) and I've seen recent announce of wxWidgets for php on these forums.
Re: Compiled PHP? GUI?
Thanks. The php-gtk is probably the closest thing to what I would use. It seems there is a lot of discussion about how the development tools for PHP are way behind others mostly because OOP wasn't really solidified until PHP5 making GUI's more realistic for php.
http://wxphp.org/ looks interesting too.
http://wxphp.org/ looks interesting too.
- greyhoundcode
- Forum Regular
- Posts: 613
- Joined: Mon Feb 11, 2008 4:22 am
Re: Compiled PHP? GUI?
Bit late seeing this post - but this is something that was interest to me a while back. As it happens, right now I am involved in some work that is utilizing PHP for desktop applications via Phalanger, which targets the .Net platform.
It's not 100% PHP as you know it, but it's an excellent effort and comes very close.
There are also some other projects that aim to compile to native code (rather than an intermediate bytecode, as is the case with Phalanger). Raven is one, but I'm not sure if it is quite up to speed yet.
Finally, I actually posted this link some time back but since it is appropriate to this thread I'll post it again. Paul Biggar on PHP compilers which is an interesting viewpoint with regards to the state of PHP compilers.
It's not 100% PHP as you know it, but it's an excellent effort and comes very close.
There are also some other projects that aim to compile to native code (rather than an intermediate bytecode, as is the case with Phalanger). Raven is one, but I'm not sure if it is quite up to speed yet.
Finally, I actually posted this link some time back but since it is appropriate to this thread I'll post it again. Paul Biggar on PHP compilers which is an interesting viewpoint with regards to the state of PHP compilers.
Re: Compiled PHP? GUI?
Oh god, why? PHP is not the best language for tool writing, nor desktop apps. In fact the best quality the language has is market penetration, which is the only thing keeping it alive for web development.
Re: Compiled PHP? GUI?
Why not? PHP, as a language, is not that bad. Certainly not worse than VB.Mordred wrote:Oh god, why?
Re: Compiled PHP? GUI?
Horrible and inconsistent API, cumbersome $syntax['around']=>'containers', the cool features are only in the latest 5.3 branch (finally first-class functions!). Sure, you *can* do everything you want, but it's not ... nice.
"Not worse than VB" is an argument of the "not worse than hammering nails in your arms" type
"Not worse than VB" is an argument of the "not worse than hammering nails in your arms" type
Re: Compiled PHP? GUI?
API is not a part of the language.Mordred wrote:Horrible and inconsistent API
Pardon?, cumbersome $syntax['around']=>'containers',
In the only supported branch, you mean?the cool features are only in the latest 5.3 branch (finally first-class functions!).
I'd call that subjective, and to talk about niceness you have to compare something to something. So, what are you comparing PHP to?Sure, you *can* do everything you want, but it's not ... nice.
Think of it in a different way: if there's a language worse than PHP why shouldn't PHP extend its functionality in a way that it would be possible to replace that inferior language?"Not worse than VB" is an argument of the "not worse than hammering nails in your arms" type