Skip to content
This repository
tag: v2.1

Fetching latest commit…


Cannot retrieve the latest commit at this time

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

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

    require_once 'classes/wordcloud.class.php';
    $cloud = new wordCloud();
    $cloud->addWord('php'); // Basic Method of Adding Keyword
    $cloud->addWord(array('word' => 'google', 'url' => '')); // Advanced user method
    $cloud->addString('List of words i would like to include');
    echo $cloud->showCloud();

More advanced usages can be found here:

Something went wrong with that request. Please try again.