PHPackages                             malahierba-lab/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. malahierba-lab/word-counter

AbandonedArchivedLibrary[Utility &amp; Helpers](/categories/utility)

malahierba-lab/word-counter
===========================

Laravel simple tool for word counting tasks

0.1.1(10y ago)21.2k2[1 PRs](https://github.com/malahierba-lab/word-counter/pulls)MITPHPPHP &gt;=5.5.18

Since Nov 16Pushed 8y ago1 watchersCompare

[ Source](https://github.com/malahierba-lab/word-counter)[ Packagist](https://packagist.org/packages/malahierba-lab/word-counter)[ RSS](/packages/malahierba-lab-word-counter/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

Laravel Word Counter
====================

[](#laravel-word-counter)

Laravel simple tool for word counting tasks. Powered by malahierba.cl dev team

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

[](#installation)

Add in your composer.json:

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

```

Then you need run the `composer update` command.

Use
---

[](#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
-------

[](#licence)

This project has MIT licence. For more information please read LICENCE file.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity49

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.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

3829d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9cd1a6bfe1ce32384fbfd071bf0af9fa3c7456554839aaffc02a25cd81e8a40e?d=identicon)[malahierba](/maintainers/malahierba)

---

Top Contributors

[![cristiansantana](https://avatars.githubusercontent.com/u/7772588?v=4)](https://github.com/cristiansantana "cristiansantana (6 commits)")

---

Tags

laravelwordscounter

### Embed Badge

![Health badge](/badges/malahierba-lab-word-counter/health.svg)

```
[![Health](https://phpackages.com/badges/malahierba-lab-word-counter/health.svg)](https://phpackages.com/packages/malahierba-lab-word-counter)
```

###  Alternatives

[livewire/volt

An elegantly crafted functional API for Laravel Livewire.

4195.3M84](/packages/livewire-volt)[gehrisandro/tailwind-merge-laravel

TailwindMerge for Laravel merges multiple Tailwind CSS classes by automatically resolving conflicts between them

341682.2k18](/packages/gehrisandro-tailwind-merge-laravel)[nickurt/laravel-akismet

Akismet for Laravel 11.x/12.x/13.x

97139.6k2](/packages/nickurt-laravel-akismet)[whitecube/laravel-timezones

Store UTC dates in the database and work with custom timezones in the application.

106106.2k](/packages/whitecube-laravel-timezones)[sbine/route-viewer

A Laravel Nova tool to view your registered routes.

57215.9k](/packages/sbine-route-viewer)[forxer/laravel-gravatar

A library providing easy gravatar integration in a Laravel project.

4235.6k](/packages/forxer-laravel-gravatar)

PHPackages © 2026

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