Login   Register  
PHP Classes
elePHPant
Icontem

PHP Tag Cloud: Display a tag cloud from a list of weighted words

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (6)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2007-06-05 (7 years ago) RSS 2.0 feedNot enough user ratingsTotal: 2,100 All time: 1,745 This week: 1,463Up
Version License PHP version Categories  
lotsofcode_tagcloud 1.3GNU General Public Lice...3.0HTML, Content management
Description Author  

This class can be used to generate a tag cloud from a list of words.

It builds a list of words from an associative array with multiple words that is passed to the class constructor. It may also add individual words later.

Each word is associated to a weight. The weight defines the relative size of the words in the tag cloud.

The class may shuffle the words to make the tag cloud return the words in a random order.

The class may return the tag cloud as an HTML string with the words rendered with CSS styles associated to each size, or as an array of words and associated sizes so the words can be rendered in a customized way by the application.

Picture of Lotsofcode
Name: Lotsofcode <contact>
Classes: 1 package by
Country: United Kingdom United Kingdom
Age: ???
All time rank: 129958 in United Kingdom United Kingdom
Week rank: 1735 Down65 in United Kingdom United Kingdom Down

  Files folder image Files  
File Role Description
Files folder imagecss (1 file)
Files folder imageclasses (1 file)
Accessible without login Plain text file readme.txt Data Basic File Information
Accessible without login Plain text file copying.txt Lic. GNU GENERAL PUBLIC LICENSE
Accessible without login Plain text file example-with-links.php Example Example with links
Accessible without login Plain text file example.php Example Example Usage File

  Files folder image Files  /  css  
File Role Description
  Accessible without login Plain text file wordcloud.css Data Master CSS File, for the sizes of the text

  Files folder image Files  /  classes  
File Role Description
  Plain text file wordcloud.class.php Class Master Class File

 Version Control Unique User Downloads Download Rankings  
 0%Total:2,100All time:1,745
 This week:0This week:1,463Up
 User Comments (1)  
 
Beautiful result, best tag cloud class so far.
5 years ago (Thales Jacobi)
70%StarStarStarStar