Download the PHP package malahierba-lab/word-counter without Composer
On this page you can find all versions of the php package malahierba-lab/word-counter. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download malahierba-lab/word-counter
More information about malahierba-lab/word-counter
Files in malahierba-lab/word-counter
Download malahierba-lab/word-counter
More information about malahierba-lab/word-counter
Files in malahierba-lab/word-counter
Vendor malahierba-lab
Package word-counter
Short Description Laravel simple tool for word counting tasks
License MIT
Package word-counter
Short Description Laravel simple tool for word counting tasks
License MIT
Please rate this library. Is it a good library?
Informations about the package word-counter
Laravel Word Counter
Laravel simple tool for word counting tasks. Powered by malahierba.cl dev team
Installation
Add in your composer.json:
{
"require": {
"malahierba-lab/word-counter": "0.*"
}
}
Then you need run the composer update command.
Use
Important: For documentation purposes, in the examples below, always we assume than you import the library into your namespace using use Malahierba\WordCounter;
$wordcounter = new WordCounter;
// Load string to analize
$wordcounter->load('some text');
// Count all words
$total = $wordcounter->countTotalWords();
// Count each word
// You receive an array with objects:
// -> word
// -> count
$eachWord = $wordcounter->countEachWord();
//example to get info for each word
foreach ($eachWord as $item) {
$word = $item->word;
$count = $item->count;
}
Licence
This project has MIT licence. For more information please read LICENCE file.
All versions of word-counter with dependencies
PHP Build Version
Package Version
The package malahierba-lab/word-counter contains the following files
Loading the files please wait ...