Saturday, September 27, 2008

PHP- GTK

What is PHP-GTK?

PHP-GTK is an extension for the PHP programming language that implements language bindings for GTK+. It provides an object-oriented interface to GTK+ classes and functions and greatly simplifies writing client-side cross-platform GUI applications.

Resources

Check out our Resources page for links to PHP-GTK related sites, instructions on the PHP-GTK mailing lists, and other PHP-GTK resources. Also, please try to use the #php-gtk channel on Freenode IRC - the more people there, the better for the community.

Download


PHP-GTK 2

GTK+ version:
PHP-GTK 2 currently supports GTK+ 2.6.9 or greater. You can obtain the latest stable release of GTK+ 2.x from ftp://ftp.gtk.org/pub/gtk/.

PHP version:
PHP-GTK 2 requires PHP 5.1.x or greater. The latest version of the PHP_5_2 branch in CVS will work, too.


PHP-GTK 1

GTK+ version:
PHP-GTK 1 currently supports GTK+ 1.2.6 or greater. You can obtain the latest stable release of GTK+ 1.2.x from ftp://ftp.gtk.org/pub/gtk/v1.2/.

PHP version:
PHP-GTK 1 requires PHP 4.0.5 or greater, with versions from 1.0.1 up requiring PHP 4.3.x to build.


CVS Version

Alternatively, you can get the latest and greatest version of PHP-GTK directly from the PHP CVS server.

  1. Log in to the PHP anonymous CVS server (use phpfi as the password):
    cvs -d :pserver:cvsread@cvs.php.net:/repository login
  2. Obtain the PHP-GTK tree.

    For PHP-GTK 2:
    cvs -d :pserver:cvsread@cvs.php.net:/repository co php-gtk
    For PHP-GTK 1:
    cvs -d :pserver:cvsread@cvs.php.net:/repository co -r PHP_GTK_1 php-gtk
  3. Move into the source tree:
    cd php-gtk
  4. Configure and install:
    ./buildconf
    ./configure
    make
    make install
Source From gtk.php.net