PHP Classes
elePHPant
Icontem

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

Recommend this page to a friend!
  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 (9 years ago) RSS 2.0 feedNot enough user ratingsTotal: 2,129 All time: 1,786 This week: 1,016Up
Version License PHP version Categories
lotsofcode_tagcloud 1.3GNU General Publi...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

Details
Thank you for downloading my PHP Tag /Word Cloud.

--

The required file structure is as follows:

Example File, very simple.
> example.php 

Example File, with optional links very simple.
> example-with-links.php 

Stylesheet, contains all the size options, imported in example.php
> css/wordcloud.css 

PHP Class, included in example.php
> classes/wordcloud.class.php

--

Thanks again,
lotsofcode.com
  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,129
This week:0
All time:1,786
This week:1,016Up
User Comments (1)
Beautiful result, best tag cloud class so far.
8 years ago (Thales Jacobi)
70%StarStarStarStar