alshaya / word-count
Get the word count with ranking.
Installs: 18
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/alshaya/word-count
Requires
- php: ~5.6.5|7.0.2|7.0.4|~7.0.6
This package is not auto-updated.
Last update: 2025-09-28 10:58:49 UTC
README
This module splits the sentence into each words and assign rank based on the no of occurrence.
Steps to use:
- Install via composer "composer require alshaya/word-count"
- create test file in the root folder. a. include the autoloader to load the class. //require_once DIR . '/vendor/autoload.php'; b. initialize the root class //$instance = new alshaya\WordCount\GetCount(); c. Set the text to be checked //$instance->setText("fsfsf"); d. Call the function which ranks the given text and arguments can be either arrya or json //$result = $instance->getWordRanking("array");