PHPackages                             alshaya/word-count - 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. alshaya/word-count

ActiveLibrary

alshaya/word-count
==================

Get the word count with ranking.

018PHP

Since Jan 18Pushed 8y agoCompare

[ Source](https://github.com/sankeerthtrk/words-count)[ Packagist](https://packagist.org/packages/alshaya/word-count)[ RSS](/packages/alshaya-word-count/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

This module splits the sentence into each words and assign rank based on the no of occurrence.

Steps to use:

1. Install via composer "composer require alshaya/word-count"
2. 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-&gt;setText("fsfsf"); d. Call the function which ranks the given text and arguments can be either arrya or json //$result = $instance-&gt;getWordRanking("array");

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/8288f43a3a7e97bb7ec9d0590b135a0b64bdd70b878341cadedcf5800e4952d5?d=identicon)[sankeerth](/maintainers/sankeerth)

---

Top Contributors

[![sankeerthtrk](https://avatars.githubusercontent.com/u/31705799?v=4)](https://github.com/sankeerthtrk "sankeerthtrk (13 commits)")

### Embed Badge

![Health badge](/badges/alshaya-word-count/health.svg)

```
[![Health](https://phpackages.com/badges/alshaya-word-count/health.svg)](https://phpackages.com/packages/alshaya-word-count)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
