lithiumdev/laravel-tagcloud
Larablocks Analysis
lithiumdev/laravel-tagcloud works with Laravel 6 and 7 (latest release v1.1.0, Aug 19, 2020), all past end of life (the last on Sep 6, 2022): no more fixes, even for security.
Laravel 5 in earlier releases.
Recommendation checks
Not advisedNot advised: no release or commit in over 2 years.
- No release or commit in over 2 years
- Supports only Laravel 6 and 7, past end of life since Sep 6, 2022
- No release in the last 12 months (last: Aug 19, 2020)
- 584 downloads a month (needs 10,000)
- 7 GitHub stars (needs 100)
State
Likely abandoned- No release or commit in over 2 years.
- Last stable release: Aug 19, 2020.
- No releases in the last 12 months.
- First released: May 2, 2016.
- Monthly downloads: 584, about the same as six months ago.
- 3 open issues on GitHub.
Data from Packagist and GitHub, checked by Larablocks on Nov 26, 2026.
| Install | |
|---|---|
composer require lithiumdev/laravel-tagcloud |
|
| Latest Version: | v1.1.0 |
| PHP: | >=7.2 |
| Laravel: | 6 · 7 |
| Older releases: | 5 |
| License: | MIT |
| Last Updated: | Aug 19, 2020 |
| Links: | GitHub · Packagist |

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
(c) Lithium Hosting, llc
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
- Laravel 5.2+
- php 5.5.9+
- Knowledge of Laravel and php
Description
A Laravel package that aids in generation of tag clouds
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
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
$cloud->addString("This is a tag-cloud script!");
Adding multiple tags
$cloud->addTags(array('laravel', 'laravel-tagcloud','php','github'));
Removing a tag
$cloud->setRemoveTag('github');
Removing multiple tags
$cloud->setRemoveTags(array('tag','cloud'));
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
$cloud->setMinLength(3);
Limiting the output
$cloud->setLimit(10);
Set the order
$cloud->setOrder('colour','DESC');
Set a custom HTML output
$cloud->setHtmlizeTagFunction(function($tag, $size) use ($baseUrl) {
$link = '<a href="'.$baseUrl.'/'.$tag['url'].'">'.$tag['tag'].'</a>';
return "<span class='tag size{$size} colour-{$tag['colour']}'>{$link}</span> ";
});
Outputting the cloud (shown above)
echo $cloud->render();
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);
Related Packages
PHP Tag Cloud composer package Implementation of http://lotsofcode.github.io/tag...
Powerful PHP database abstraction layer (DBAL) with many features for database s...
Laravel Serializable Closure provides an easy and secure way to serialize closur...
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| v1.1.0 | >=7.2 | >=6.0 | MIT | |
| v1.0.5 | >=5.5.9 | ~5.0 | MIT | |
| v1.0.4 | >=5.5.9 | ~5.0 | MIT | |
| v1.0.3 | >=5.5.9 | ~5.0 | MIT | |
| v1.0.2 | >=5.5.9 | ~5.0 | MIT | |
| v1.0.1 | >=5.5.9 | ~5.0 | MIT | |
| v1.0.0 | >=5.5.9 | ~5.0 | MIT |