PHP-GTK

来源:互联网 发布:vscode插件 web前端 编辑:程序博客网 时间:2024/05/16 02:01

这是PHP的一个子计划,目的要使php成为一种标准的编程语言而非单纯的脚本语言。

使用PHP-GTK可以在图形界面的系统中编写图形界面的应用程序,使用php编写应用的客户端。这样服务器端、客户端都可以使用php来编写了。

PHP-GTK是为了证明PHP是一种远远超越网络应用程序的有效的工具而开发的。使用 PHP-GTK你可以建立独立的GUI(用户图形界面)应用程序,例如mp3播放器、文本编辑器、数据库后台等等。PHP-GTK是PHP的扩展。PHP-GTK基于GTK+,是Andrei Zmievski最先使用的。

GTK(GIMP Toolkit)是一套跨多种平台的图形工具包,按LGPL许可协议发布的。虽然最初是为GIMP写的,但目前已发展为一个功能强大、设计灵活的一个通用图形库。特别是被GNOME选中使得GTK+广为流传,成为Linux下开发图形界面的应用程序的主流开发工具之一,当然GTK+并不要求必须在Linux上,事实上,目前GTK+已经有了成功的windows版本。

GTK虽然是用C语言写的,但是您可以使用你熟悉的语言了使用GTK,因为GTK+已经被绑定到几乎所有流行的语言上,如:C++, Guile, Perl, Python, TOM, Ada95, Objective C, Free Pascal, and Eiffel。


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-2.0.1 Source - 15-May-2008
  • php-gtk-2.0.1 Windows binary pack - 16-May-2008
  • php-gtk-2.0.1 Windows binary extensions pack - 16-May-2008
  • php-gtk-2.0.0 Source for Gtk+ 2.6 upwards - 29-Feb-2008
  • php-gtk-2.0.0 Windows binary pack - 29-Feb-2008

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.

  • php-gtk-1.0.2 Source - 15-Jul-2005
  • php-gtk-1.0.1 Source - 09-Aug-2004
  • php-gtk-1.0.2 Windows and PHP Binaries - 15-Jul-2005
  • php-gtk-1.0.1a Windows and PHP Binaries - 25-Aug-2004
  • php-gtk-1.0.0 Windows and PHP Binaries including ComboButton, Extra, libGlade, Scintilla, Spaned, SQPane - 23-Oct-2003

CVS Version

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

  1. Obtain the PHP-GTK tree. 

    For PHP-GTK 2:
    svn co http://svn.php.net/repository/gtk/php-gtk/trunk php-gtk
    For PHP-GTK 1:
    svn co http://svn.php.net/repository/gtk/php-gtk/branches/PHP_GTK_1 php-gtk
  2. cd into the source tree:
    cd php-gtk
  3. Configure and install:
    ./buildconf./configuremakemake install
原创粉丝点击