PHP Classes

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    
Ratings Unique User Downloads Download Rankings
StarStarStar 57%Total: 2,212 All time: 1,767 This week: 59Up
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
Age: ???
All time rank: 138563 in United Kingdom
Week rank: 305 Up14 in United Kingdom Up

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,212
This week:0
All time:1,767
This week:59Up
User Ratings User Comments (1)
 All time
Utility:83%StarStarStarStarStar
Consistency:75%StarStarStarStar
Documentation:-
Examples:83%StarStarStarStarStar
Tests:-
Videos:-
Overall:57%StarStarStar
Rank:1631
 
Beautiful result, best tag cloud class so far.
15 years ago (Thales Jacobi)
70%StarStarStarStar