Letzte Nachrichten in den PHP-GTK Foren

For more posts, go to the forums page or head to the community page for international (non-english) forums.

New layout on the official website of the php-gtk (http://gtk.php.net/)

Good day,

I changed the official website of the php-gtk at http://gtk.php.net/

  • Now it is multi-language.
  • For now the site is in English and Portuguese Brazil.
  • Today we have few links, but I hope that the community help us make improvements.
  • 5361 files were changed for me, including the manual files which now has four formats for download.
  • Next week I shall provide a page where you will know how to help the project.
  • With the release of PHP 7, I will start the development of php-gtk 3.

I ask those who want to publicize your software, to send screens and a description in Portuguese and English so I put on the official website.

Thank you

pewpew - PHP's Embedded Webserver

screenshot for pewpew This is a tiny tool that allows you to launch the built in PHP 5.4 HTTP test server with a few clicks. It allows you to select which PHP binary you want to use (in case you have multiple on your system) and the document root of the test server.

Explore Cairo your self without a manual or tutorial

There are some very good tutorials for doing some basic or a bit more advanced things in php gtk cairo. However it is logical that they do not cover everything.

But luckily one can go further in using cairo by him self, I provide a single and very simple example script that allows you to discover all by your self things like:

Getting a descendant (child) widget by name

This script gets a descedant (child) widget by name using recursion. A name should be defined for the child previously, if not as a name is considered the class name.

The name is passed as a variable by reference, when the target is found it is stored in this variable.
This will change the variable type from string to object, this very information is used as a condition to stop further recursion.

Random Walk Visualizer

This is about simple random walk (as defined in theory). Uses the cairo library. A ball walks randomly on the screen and leaves a trace behind.

screenshot for <application name />Defined probability for the next step to walk is 0.5. Probabilities for left step and other parameters are pre-defined however someone can change them from inside the constructor at will. Accepted probabilities are from 0 to 1, also -1 is accepted, this indicates that the program choses on its own the probability for the next step to walk. The purpose of this is to show the the usage of cairo library!

Inhalt abgleichen