Skip to content
Advertisement

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.)

Advertisement

Answer

http://phpketchup.isgreat.org/ PHPKetchup is a new project in planning stage. There isn’t any code available for now (also seems intended commercial, not open source). It was announced as framework atop PHP-GTK. There is a conception document which explicitly lists the goal as designing a MVC framework.

However it seems like they take inspiration from CodeIgniter and mostly the common PHP framework structure. The focus seems not to lie on integrating PHP-GTK with the application logic, but mostly to provide a database interface as model and a thin Gtk interface for the View.

MVC Architecture:
We will design and implement Model-View-Controller (MVC) architecture for the PHP-GTK framework. SQLite will be used for Model. PHP-GTK functions and Glade files will be integrated in View after removal of HTML, CSS and Javascript. Controller will be modified accordingly to work with the newly created View.

So it might just be MVC in name and organization, but one of the diagrams mentions “PHP-GTK functions addition” and there are further hints of object-structured Gtk helpers.

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement