 | News Feed |
 | Jobs Feed |
Sections
|
| feed this: |  |
ZetaCode.com: PHP GTK tutorial
by Chris Cornutt November 18, 2011 @ 12:41:30
Jan Bodnar has pointed out a great PHP-GTK tutorial on ZetaCode.com that walks you through some of the major points of this graphical frontend for PHP:
This tutorial will teach you the basics of GUI programming with the PHP GTK. The tutorial has 8 chapters which cover the first steps with the library, menus, toolbars, dialogs and various widgets. It has some examples for drawing with Cairo library. The final chapter presents a small computer game; The Nibbles.
Each of the topics has sample code and screenshots of the resulting output for each. Also included is information on layouts and "painting" with Cairo - drawing shapes, rectangles, text, etc.
voice your opinion now!
phpgtk graphical frontend tutorial widget cairo
PHPClasses.org: Using PHP-GTK to serve Web Applications to HTML 5 Browsers
by Chris Cornutt October 27, 2011 @ 09:57:13
On the PHPClasses.org blog today there's a new post showing how you can use PHP-GTK to generate websites, not just the more traditional desktop applications people associate it with.
es, you read it right, GTK+, the Gnome Toolkit library, normally used to create desktop applications, can now be used to serve the same applications via the Web to a browser that supports HTML 5 canvas objects. PHP-GTK is a PHP extension that uses the GTK+ library to build PHP desktop applications. So it can eventually benefit for this GTK library enhancements to build PHP-GTK based applications that can be served over the Web to HTML 5 browsers.
Manuel starts by explaining a bit about what PHP-GTK (and GTK+) is and a recent update to GTK+ that allows it to generate output to different backends - Wayland (direct graphics rendering) and Broadway (HTML5 canvas support). There's no example code to go along with the post, but there's a good description of how the output of an X Windows session could be pulled in and displayed in a browser (see this video for a cool example using GIMP and Broadway).
voice your opinion now!
phpgtk html5 gtk application xwindows backend wayland broadway
Alexey Zakhlestins' Blog: GObject for PHP (new bindings project)
by Chris Cornutt February 24, 2011 @ 08:25:23
In a new post Alexey Zakhlestins talks about a project he's been working on, a part of the split up with PHP-GTK out into separate projects. His part of the group is GObject with has now been moved over to github.
This new PHP extension is called "GObject for PHP", so, my main concern, obviously is building comfortable bridge between GObject objects and PHP's objects. It starts to work, but there's a lot of stuff to be done. Please join the project, if you are interested. We need more hands!
He describes some of the features already in the library - counterparts for parts of the current GObject world in PHP including GType, GSignal and GParamSpec. This is all on the master branch. In his "introspection" branch he's working on the introspection idea the GNOME community has been working towards too.
voice your opinion now!
phpgtk gobject binding github master introspection
PHP-GTK Blog: How to PHP 5.3 with PHP-GTK and Cairo on Linux Mint 9
by Chris Cornutt August 13, 2010 @ 09:33:23
On the PHP-GTK blog today there's a new post looking at getting the latest versions of PHP (5.3) and PHP-GTK up and running on a Ubuntu-based system.
At the moment there are some minor problems when trying to get a working installation of PHP with GTK running on Ubuntu based systems. Here is a quick walk through of how you can get this all set up with the trunks from GTK and Cairo and the official package for php-cli in 10 easy steps. This installation was originally done on Linux Mint 9 but should work with most Ubuntu based Linux distributions.
There's ten steps in the process including fetching the packages you'll need with an apt-get call, checking out the latest cairo and php-gtk and the commands to patch and build the source.
voice your opinion now!
phpgtk cairo linux ubuntu tutorial install
HubFolio: Deploying a PHP-GTK application with NSIS
by Chris Cornutt November 04, 2009 @ 11:06:33
On the HubFolio site today Matthew Casperson has posted a new tutorial about deploying PHP-GTK applications with the help of the NSIS software (Nullsoft Scriptable Install System).
PHP-GTK is a project that binds the GTK desktop library. Unlike other solutions like Appceletartor Titanium, which create web applications that are distributed like a desktop application, PHP-GTK allows PHP developers to create native desktop applications utilizing the GTK platform. One of the issues with PHP-GTK is distributing the final application. This tutorial steps you through the process of creating a setup package for a simple PHP-GTK application with NSIS and HM NIS Edit.
He shows you how to create a simple PHP-GTK application, package it up with the HM NIS Edit tool and use the wizard to create the new package. Change a few configuration settings and compile the script and you should end up with a nice bundled installer.
voice your opinion now!
phpgtk application nsis windows installer
|
Community Events
Don't see your event here? Let us know!
|