PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Mon Jan 20, 2020 4:14 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 10 posts ] 
Author Message
 Post subject: Compiled PHP? GUI?
PostPosted: Fri Sep 02, 2011 8:07 am 
Offline
DevNet Resident

Joined: Sun Jun 14, 2009 3:13 pm
Posts: 1146
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.


Last edited by Eric! on Tue Sep 06, 2011 8:25 am, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Compiled PHP? GUI?
PostPosted: Mon Sep 05, 2011 3:54 pm 
Offline
Forum Newbie

Joined: Tue Aug 23, 2011 2:15 pm
Posts: 8
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.


Top
 Profile  
 
 Post subject: Re: Compiled PHP? GUI?
PostPosted: Tue Sep 06, 2011 8:02 am 
Offline
DevNet Resident

Joined: Sun Jun 14, 2009 3:13 pm
Posts: 1146
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.


Top
 Profile  
 
 Post subject: Re: Compiled PHP? GUI?
PostPosted: Wed Sep 07, 2011 4:35 am 
Offline
Moderator
User avatar

Joined: Mon Nov 03, 2003 7:13 pm
Posts: 5978
Location: Odessa, Ukraine
There's php-gtk (fairly stagnant project if you ask me) and I've seen recent announce of wxWidgets for php on these forums.


Top
 Profile  
 
 Post subject: Re: Compiled PHP? GUI?
PostPosted: Thu Sep 08, 2011 7:33 am 
Offline
DevNet Resident

Joined: Sun Jun 14, 2009 3:13 pm
Posts: 1146
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.


Top
 Profile  
 
 Post subject: Re: Compiled PHP? GUI?
PostPosted: Thu Oct 20, 2011 9:46 pm 
Offline
Forum Regular
User avatar

Joined: Mon Feb 11, 2008 5:22 am
Posts: 613
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. which is an interesting viewpoint with regards to the state of PHP compilers.


Top
 Profile  
 
 Post subject: Re: Compiled PHP? GUI?
PostPosted: Fri Oct 21, 2011 6:54 am 
Offline
DevNet Resident
User avatar

Joined: Sun Sep 03, 2006 5:19 am
Posts: 1579
Location: Sofia, Bulgaria
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.


Top
 Profile  
 
 Post subject: Re: Compiled PHP? GUI?
PostPosted: Fri Oct 21, 2011 7:33 am 
Offline
Moderator
User avatar

Joined: Mon Nov 03, 2003 7:13 pm
Posts: 5978
Location: Odessa, Ukraine


Top
 Profile  
 
 Post subject: Re: Compiled PHP? GUI?
PostPosted: Fri Oct 21, 2011 8:04 am 
Offline
DevNet Resident
User avatar

Joined: Sun Sep 03, 2006 5:19 am
Posts: 1579
Location: Sofia, Bulgaria
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 :)


Top
 Profile  
 
 Post subject: Re: Compiled PHP? GUI?
PostPosted: Fri Oct 21, 2011 11:15 am 
Offline
Moderator
User avatar

Joined: Mon Nov 03, 2003 7:13 pm
Posts: 5978
Location: Odessa, Ukraine


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group