<?php
use Laminas\Tag\Cloud;
use Laminas\Tag\Item;
$items = [
new Item(['title' => 'ZF2 Dbl', 'weight' => 100]),
new Item(['title' => 'ZF2 Rand', 'weight' => 90]),
new Item(['title' => 'ZF2 Figlet', 'weight' => 190]),
new Item(['title' => 'SF2 Configuration', 'weight' => 120]),
new Item(['title' => 'ZF2 BigInt', 'weight' => 90]),
];
// use Decorator classes for changing rendered format
$cloud = new Cloud([
'tags' => $items,
]);
echo $cloud->render();