PHP create tag word cloud with zend tag package

2
822
views

In this section, we will create a word cloud tag like wordpress, using zend package.

We using composer to install them.
composer require zendframework/zend-servicemanager
composer require zendframework/zend-tag

Create file, eg. index.php, like code below

– Line 5, call class and initialize
– Line 8, is class in first tag ul (if you using bootstrap, you can add list-inline to make ul li inline)
– Line 12, min and max font size
– Line 15-19, is example tag options

And the result like this

Reference:
https://github.com/redzjovi/php-zend-tag-word-cloud
https://github.com/zendframework/zend-servicemanager
https://github.com/zendframework/zend-tag

2 COMMENTS

LEAVE A REPLY

Please enter your name here
Please enter your comment!