Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

any real MVC library in PHP (for GUI apps)

I'm wondering if there are any abstraction frameworks for one of the PHP gui libraries. We have PHP-GTK, a PHP/Tk interface, and seemingly also PHP-QT. (Not tried any.)

I know that writing against the raw Gtk+ interface in Python is just bearable, and it therefore seems not very enticing for PHP. I assume it's the same for Qt, and Tk is pretty low-level too. So I'm looking for something that provides a nicer object structure atop any of the three. Primarily TreeViews are always a chore and php-gtk callbacks are weird in PHP, so I'd like a simplification for that. If it eases adding the GUI/View atop my business logic without much control code, that might already help.

And so since GUI apps are an area where MVC or MVP would actually make sense, I'd like to know if any library for that exists.

Still open for answers.
(There will probably be a second bounty round. It's an uncommon topic, so needs more research.)

like image 243
mario Avatar asked Jan 02 '11 01:01

mario


1 Answers

[Not an answer. Just wanted to remove this from the question, as it's only related, not a solution.]

There is the PHP interface preprocessor. However it is very simple and low-level. It provides an output interface for Gtk, as well as ncurses, but also PDF or XHTML serialization. Which is interesting, as it's close to real MVC constructs in allowing to exchange the View for different backends without adapting the Controller even. But then it only provides the basic widgets, and not a whole lot of simplifications. Thus I only consider it related to my original question. So, a side note.

like image 180
mario Avatar answered Oct 07 '22 12:10

mario