PHPackages                             lithiumdev/laravel-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. lithiumdev/laravel-tagcloud

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

lithiumdev/laravel-tagcloud
===========================

A Laravel package for generating tag clouds.

v1.1.0(5y ago)723.2k↓30.8%4[3 issues](https://github.com/LithiumHosting/laravel-tagcloud/issues)MITPHPPHP &gt;=7.2

Since May 2Pushed 5y ago1 watchersCompare

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

READMEChangelog (7)Dependencies (1)Versions (8)Used By (0)

[![](https://camo.githubusercontent.com/0c9d6c071c06ea29828dd4f0f7c080feedaffbfc2a95f47f183a565778592589/68747470733a2f2f6c69746869756d686f7374696e672e636f6d2f696d616765732f6c6f676f5f6e65775f626c61636b2e706e67)](https://camo.githubusercontent.com/0c9d6c071c06ea29828dd4f0f7c080feedaffbfc2a95f47f183a565778592589/68747470733a2f2f6c69746869756d686f7374696e672e636f6d2f696d616765732f6c6f676f5f6e65775f626c61636b2e706e67)

Laravel 5+ Tag Cloud Generator
==============================

[](#laravel-5-tag-cloud-generator)

**from Lithium Hosting**
We're always open to pull requests, feel free to make this your own or help us make it better.

### Copyright

[](#copyright)

(c) Lithium Hosting, llc

### License

[](#license)

This library is licensed under the GNU GPL license; you can find a full copy of the license itself in the file /LICENSE

### Requirements

[](#requirements)

- Laravel 5.2+
- php 5.5.9+
- Knowledge of Laravel and php

### Description

[](#description)

A Laravel package that aids in generation of tag clouds

---

### Installation

[](#installation)

Install this package through Composer. To your composer.json file, add:

```
    "lithiumdev/laravel-tagcloud": "~1.0"
```

Next, run the Composer update comand

```
$ composer update

```

Add the service provider to app/config/app.php, within the providers array.

```
    'providers' => array(
        // ...
        LithiumDev\TagCloud\ServiceProvider::class,
    ),
```

### Usage

[](#usage)

```
use LithiumDev\TagCloud\TagCloud;

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

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

Or:

```
// Assumes use of Facade "TagCloud"
$cloud = \TagCloud::addTags(['tag_1', 'tag_2', 'tag_3']);

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

#### Convert a string

[](#convert-a-string)

```
$cloud->addString("This is a tag-cloud script!");
```

#### Adding multiple tags

[](#adding-multiple-tags)

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

#### Removing a tag

[](#removing-a-tag)

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

#### Removing multiple tags

[](#removing-multiple-tags)

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

#### 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) use ($baseUrl) {
  $link = ''.$tag['tag'].'';
  return "{$link} ";
});
```

#### Outputting the cloud (shown above)

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

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

#### Transliteration

[](#transliteration)

By default, all accented characters will be converted into their non-accented equivalent, this is to circumvent duplicate similar tags in the same cloud, to disable this functionality and display the UTF-8 characters you can do the following:

```
$tagCloud->setOption('transliterate', false);
```

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance11

Infrequent updates — may be unmaintained

Popularity34

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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

Every ~261 days

Recently: every ~334 days

Total

7

Last Release

2099d ago

PHP version history (2 changes)v1.0.0PHP &gt;=5.5.9

v1.1.0PHP &gt;=7.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/20a605a84d2fd001ad68750f93812201d3fe0c8dc056e657580fae0562a16f80?d=identicon)[tsiedsma](/maintainers/tsiedsma)

---

Top Contributors

[![tsiedsma](https://avatars.githubusercontent.com/u/2625597?v=4)](https://github.com/tsiedsma "tsiedsma (9 commits)")

---

Tags

laraveltag cloudtagcloudlaravel tag cloudlaravel tagcloud

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/lithiumdev-laravel-tagcloud/health.svg)](https://phpackages.com/packages/lithiumdev-laravel-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)[xefi/faker-php-laravel

Faker php integration with laravel

1915.1k](/packages/xefi-faker-php-laravel)[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)
