View source for PHP-GTK

From Openmoko

Jump to: navigation, search

You do not have permission to edit this page, for the following reasons:

  • The action you have requested is limited to users in the group: Administrators.
  • You must confirm your email address before editing pages. Please set and validate your email address through your user preferences.

You can view and copy the source of this page:

Return to PHP-GTK.

Personal tools

What is it?

PHP-GTK is an extension for PHP, which enables you to write real applications with a GTK-interface in PHP. This works really well on the Openmoko, and some applications has already been written.

Hello World example

 class MyWindow{
   function __construct(){
     $this->window = new GtkWindow();
     $this->label = new GtkLabel("Hello world");
 $my_window = new MyWindow();

How to get it?

Derick Rethans has ported PHP and PHP-GTK for the OpenMoko, which you can read more about on his blog in this post.

There has already been set up a repository called Knjrepository by Kaspernj, which includes these packages amongst many others.