PHPackages                             prokhonenkov/yii2-word-counter - 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. prokhonenkov/yii2-word-counter

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

prokhonenkov/yii2-word-counter
==============================

The word counter

1.0(6y ago)02MITPHPPHP &gt;=7.1

Since Feb 11Pushed 6y ago1 watchersCompare

[ Source](https://github.com/prokhonenkov/yii2-word-counter)[ Packagist](https://packagist.org/packages/prokhonenkov/yii2-word-counter)[ RSS](/packages/prokhonenkov-yii2-word-counter/feed)WikiDiscussions master Synced yesterday

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

Word counter
============

[](#word-counter)

This extension count words and sort them by the number and alphabet.

Installation
------------

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require prokhonenkov/yii2-word-counter

```

or add

```
"prokhonenkov/yii2-word-counter": "*"

```

to the require section of your `composer.json` file.

Configuration
-------------

[](#configuration)

Add component declaration to your config file for console config:

```
