News Feed
Jobs Feed
Sections




News Archive
feed this:

Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

ZetaCode.com:
PHP GTK tutorial
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.

0 comments voice your opinion now!
phpgtk graphical frontend tutorial widget cairo


Harun Yayli's Blog:
memcache.php stats like apc.php
May 22, 2008 @ 12:02:59

Inspired by the nice web interface that the Alternative PHP Cache provides (apc), Harun Yayli decided to hack together his own version for the memcache caching software.

For a long time I was looking for a nice web interface like the apc.php (comes with the apc's source) that displays whole nine yards of stats. [...] Anyways, I decided to rip write my own. Totally based on the original apc.php (I even recycled some functions) and apart from completeness, here is a memcache.php that you can get stats and dump from multiple memcache servers.

Here's the output of his script and he's made the source for it available for download as well.

0 comments voice your opinion now!
memcache statistics apc alternativephpcache graphical output


DevShed:
Graphical Interfaces and Unit Testing
November 02, 2006 @ 11:57:00

In the final part of their series looking at unit testing in PHP, DevShed has this new tutorial that looks at using graphical interfaces with the unit tests you've already generated. It's another excerpt from the George Schlossnage book "Advanced PHP Programming".

Because PHP is a Web-oriented language, you might want an HTML-based user interface for running your unit tests. PHPUnit comes bundled with this ability, using PHPUnit_WebUI_TestRunner::run(). This is in fact a nearly identical framework to TextUI; it simply uses its own listener to handle generate HTML-beautified output.

He looks at test driven design, a simple "Flesch Score Calculator" class, testing a "Word" class (with PHPUnit), and creating the Bug Report of the output of it all. Finally, he builds up a simple web interface to make running the tests and getting the reports nice and easy.

0 comments voice your opinion now!
tutorial unit test graphical interface phpunit web tutorial unit test graphical interface phpunit web


PHPBuilder.com:
Simulating Graphical Charts with XHTML/CSS
September 27, 2006 @ 14:55:00

PHPBuilder has another excerpt posted from the book "PHP 5 in Practice" from Sams Publishing. It takes a quick look at a method to simulate graphical charts with some XHTML and CSS tricks (and PHP's help).

When you need to present data in a chart on a web page, it is often worthwhile to generate graphical charts. This method is covered later in Section 18.4, "Creating a Graph/Chart Library"; however, sometimes for a quick chart CSS can suffice. Listing 9.4.1 presents a function that creates a visual chart of data using CSS and XHTML only.

You can find the code they're talking about for "Listing 9.4.1". They explain it briefly, but it's a quick "here's what it looks like" and less of a "here's the logic behind it" kind of post. Never the less, it's still quite useful.

0 comments voice your opinion now!
graphical charts simulation html css excerpt graphical charts simulation html css excerpt


Sebastian Bergmann's Blog:
More Work on Reporting in PHPUnit 3
May 11, 2006 @ 05:53:17

Sebastian Bergmann has posted several new screenshots of the new reporting feature of the upcoming PHPUnit 3 release, completed via a patch from Michael Lively Jr.

Michael Lively Jr. sent me a patch last night that implements most of the bits and pieces that were still missing from the new reporting functionality in PHPUnit 3.

When you compare the current version of the reporting to the original version you will notice that I changed the color scheme. It now uses colors from the Tango Palette.

The screenshots include views of the summary page, a detail view of the same (and more) information, example test results output, and the code coverage for an internal class.

0 comments voice your opinion now!
phpunit version3 reporting functionality HTML output graphical phpunit version3 reporting functionality HTML output graphical


Sebastian Bergmann's Blog:
Graphical Logging in PHPUnit 3
February 02, 2006 @ 06:47:07

On his blog today, Sebastian Bergmann has posted this quick entry about a cool feature of the upcoming version of PHPUnit - a graphical representation of the test execution.

Another new feature of the next version of PHPUnit is the ability to generate a graphical visualization of the test execution using GraphViz.

This graph (SVG version), for example, shows the graphical visualization for the execution of the tests declared in the MoneyTest sample that comes with PHPUnit.

The MoneyTest sample mentioned comes with the PHPUnit download, but the code was altered to cause it to fail. You can see the result in this graphic...

1 comment voice your opinion now!
phpunit version three graphical logging moneytest phpunit version three graphical logging moneytest



Community Events











Don't see your event here?
Let us know!


component introduction package application hhvm security install framework hack example overview series release language podcast code symfony2 unittest composer facebook

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework