PHPackages                             thekavish/tagcloud - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. thekavish/tagcloud

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

thekavish/tagcloud
==================

PHP Tag Cloud composer package Derived from https://github.com/arogozin/tagcloud

v4.2.1(8y ago)051MITPHPPHP &gt;=5.6.0

Since Nov 17Pushed 7y agoCompare

[ Source](https://github.com/thekavish/tagcloud)[ Packagist](https://packagist.org/packages/thekavish/tagcloud)[ RSS](/packages/thekavish-tagcloud/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

tagcloud
========

[](#tagcloud)

This PHP Tag Cloud composer package is a Derivation of

##### Many Thanks to its original developers.

[](#many-thanks-to-its-original-developers)

PHP Tag Cloud
=============

[](#php-tag-cloud)

v5.0
----

[](#v50)

#### Basic usage

[](#basic-usage)

```
$cloud = new TagCloud();
$cloud->addTag("tag-cloud");
$cloud->addTag("programming");
echo $cloud->render();

```

#### Convert a string

[](#convert-a-string)

```
$cloud->addString("This is a tag-cloud script, written by Del Harvey. I wrote this tag-cloud class because I just love writing code.");

```

#### Adding multiple tags

[](#adding-multiple-tags)

```
$cloud->addTags(array('tag-cloud','php','github'));

```

#### Removing a tag

[](#removing-a-tag)

```
$cloud->setRemoveTag('github');

```

#### Removing multiple tags

[](#removing-multiple-tags)

```
$cloud->setRemoveTags(array('del','harvey'));

```

#### More complex adding

[](#more-complex-adding)

```
$cloud->addTag(array('tag' => 'php', 'url' => 'http://www.php.net', 'colour' => 1));
$cloud->addTag(array('tag' => 'ajax', 'url' => 'http://www.php.net', 'colour' => 2));
$cloud->addTag(array('tag' => 'css', 'url' => 'http://www.php.net', 'colour' => 3));

```

#### Set the minimum length required

[](#set-the-minimum-length-required)

```
$cloud->setMinLength(3);

```

#### Limiting the output

[](#limiting-the-output)

```
$cloud->setLimit(10);

```

#### Set the order

[](#set-the-order)

```
$cloud->setOrder('colour','DESC');

```

#### Set a custom HTML output

[](#set-a-custom-html-output)

```
$cloud->setHtmlizeTagFunction( function($tag, $size) {
	$link = ''.$tag['tag'].'';
	return "{$link} ";
});

```

#### Outputting the cloud (shown above)

[](#outputting-the-cloud-shown-above)

```
echo $cloud->render();

```

More usages on in a prettier format can be found here:

Tests
-----

[](#tests)

To run the unit test suite:

```
cd tests
curl -s https://getcomposer.org/installer | php
php composer.phar install
./vendor/bin/phpunit lotsofcode/TagCloud/TagCloud.php

```

Submitting pull requests
------------------------

[](#submitting-pull-requests)

Indentation style, size and encoding should be followed as per .editorconfig settings.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3105d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6e3a2a3e9fc5cae30c64e7464e99afc779df1e17b332a6076ec231df34630c53?d=identicon)[thekavish](/maintainers/thekavish)

---

Top Contributors

[![thekavish](https://avatars.githubusercontent.com/u/3951172?v=4)](https://github.com/thekavish "thekavish (7 commits)")[![arogozin](https://avatars.githubusercontent.com/u/3826633?v=4)](https://github.com/arogozin "arogozin (5 commits)")[![DouglasMedeiros](https://avatars.githubusercontent.com/u/229050?v=4)](https://github.com/DouglasMedeiros "DouglasMedeiros (1 commits)")[![jaltek](https://avatars.githubusercontent.com/u/359552?v=4)](https://github.com/jaltek "jaltek (1 commits)")

---

Tags

composer-packagetag-cloudwordcloudlaraveltagtag cloudkeywordskeyword cloud

### Embed Badge

![Health badge](/badges/thekavish-tagcloud/health.svg)

```
[![Health](https://phpackages.com/badges/thekavish-tagcloud/health.svg)](https://phpackages.com/packages/thekavish-tagcloud)
```

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[interaction-design-foundation/laravel-geoip

Support for multiple Geographical Location services.

17221.0k3](/packages/interaction-design-foundation-laravel-geoip)[nedwors/navigator

A Laravel package to ease defining navigation menus

433.1k](/packages/nedwors-navigator)[dcblogdev/laravel-junie

Install pre-configured guides for Jetbrains Junie

392.5k](/packages/dcblogdev-laravel-junie)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
