PHP Classes

PHP Dial Gauge: Generate an image of a dial gauge

Recommend this page to a friend!
  Info   Screenshots   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 63%Total: 2,437 All time: 1,594 This week: 206Up
Version License PHP version Categories
phpdialgauge 1.0Freeware5.2PHP 5, Graphics
Description 

Author

This class can be used to generate images of a dial gauge.

It generates an image of a dial gauge with a needle pointer rotated to a given value between the minimum and maximum angle.

Optionally, it can also display the current value that the needle is pointing.

The resulting image is served as the current script output in the transparent GIF or PNG formats.

Innovation Award
PHP Programming Innovation award nominee
August 2007
Number 4


Prize: One copy of the Zend Studio
Gauges are often used in panels of cars and other machines to give the user an idea of the level of something that is being measured, like for instance the speed of a car or the available fuel level.

This class uses the same metaphor to represent the level of something that is being measured by a PHP script by the means of a dynamically generated graphic image of a gauge and a pointer meter of the current level.

Manuel Lemos
Picture of Stephen P
Name: Stephen P <contact>
Classes: 2 packages by
Country: United States United States
Age: 40
All time rank: 55671 in United States United States
Week rank: 227 Up23 in United States United States Up
Innovation award
Innovation award
Nominee: 1x

Screenshots (1)  
  • screenshot
  Files folder image Files (6)  
File Role Description
Image file blank.png Photo required image
Plain text file example.php Example example script
Image file gauge_blank.png Photo required image
Image file gauge_needle.png Photo required image
Plain text file phpdial_gauge.php Class phpdial_gauge class file

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:2,437
This week:0
All time:1,594
This week:206Up
User Ratings User Comments (1)
 All time
Utility:91%StarStarStarStarStar
Consistency:91%StarStarStarStarStar
Documentation:-
Examples:86%StarStarStarStarStar
Tests:-
Videos:-
Overall:63%StarStarStarStar
Rank:797
 
great class
16 years ago (jason)
70%StarStarStarStar