Skip to content
This repository
tag: v2.1

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 classes
Octocat-spinner-32 css
Octocat-spinner-32 README.md
Octocat-spinner-32 copying.txt Initial import August 15, 2011
Octocat-spinner-32 example.php
README.md

PHP Tag Cloud Class

The required files are as follows:

  • example.php - Example file, contains a list of example ways to include the script.
  • css/wordcloud.css - Stylesheet, contains all the size options, imported in example.php
  • classes/wordcloud.class.php - PHP Class, included in example.php

Sample usage

<?php
    require_once 'classes/wordcloud.class.php';
    $cloud = new wordCloud();
    $cloud->addWord('php'); // Basic Method of Adding Keyword
    $cloud->addWord(array('word' => 'google', 'url' => 'http://www.google.com')); // Advanced user method
    $cloud->addString('List of words i would like to include');
    $cloud->addWords('hello','world','how','are','foo','bar');
    echo $cloud->showCloud();
?>

More advanced usages can be found here: http://lotsofcode.github.com/tag-cloud

Something went wrong with that request. Please try again.