PHP Classes


Recommend this page to a friend!
  Classes of Cal Evans  >  cal_TagCloud  >  README.TXT  >  Download  
Role: Documentation
Content type: text/plain
Description: Basic instructions
Class: cal_TagCloud
Display a tag cloud from an array of tags
Author: By
Last change: added the project homepage.
Date: 11 years ago
Size: 816 bytes


Class file image Download
Cal Evans <>
My Homepage:
Project Homepage:
(c) 2006 Cal Evans, All Rights Reserved
Licensed under the GPL 2.0


1: Create a directory cal somewhere in your include_path.
2: Place TagCloud.php in it.
3: In your code use:
require 'cal/TagCloud.php';
$cloudMaker = new cal_TagCloud($yourArrayOfTags); 
// Set options here.
echo $cloudMaker->cloudOutput;

In the above example, $yourArrayOfTags is a single dimensional 
array of tags. The more a tag is in the array, the higher it's 
weight and score. See tagCloydTest.php for a working example.

You can see a working example on the project homage:

Email me if you have questions.