2017 © Pedro Peláez
 

library word-counter

Laravel simple tool for word counting tasks

image

malahierba-lab/word-counter

Laravel simple tool for word counting tasks

  • Tuesday, November 17, 2015
  • by malahierba
  • Repository
  • 1 Watchers
  • 0 Stars
  • 85 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 3 Versions
  • 8 % Grown

The README.md

Laravel Word Counter

Laravel simple tool for word counting tasks. Powered by malahierba.cl dev team, (*1)

Installation

Add in your composer.json:, (*2)

{
    "require": {
        "malahierba-lab/word-counter": "0.*"
    }
}

Then you need run the composer update command., (*3)

Use

Important: For documentation purposes, in the examples below, always we assume than you import the library into your namespace using use Malahierba\WordCounter;, (*4)

$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., (*5)

The Versions

17/11 2015

dev-master

9999999-dev

Laravel simple tool for word counting tasks

  Sources   Download

MIT

The Requires

 

laravel counter words

17/11 2015

0.1.1

0.1.1.0

Laravel simple tool for word counting tasks

  Sources   Download

MIT

The Requires

 

laravel counter words

16/11 2015

0.1.0

0.1.0.0

Laravel simple tool for word counting tasks

  Sources   Download

MIT

The Requires

 

laravel counter words