PHPackages                             petehouston/nhieu-php - 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. petehouston/nhieu-php

ActiveLibrary

petehouston/nhieu-php
=====================

The pluralization for Vietnamese words

1.0.0(9y ago)2171MITPHP

Since Jun 7Pushed 9y ago1 watchersCompare

[ Source](https://github.com/petehouston/nhieu-php)[ Packagist](https://packagist.org/packages/petehouston/nhieu-php)[ Docs](https://github.com/petehouston/nhieu-php)[ RSS](/packages/petehouston-nhieu-php/feed)WikiDiscussions master Synced 1mo ago

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

nhieu-php
=========

[](#nhieu-php)

[![Latest Version on Packagist](https://camo.githubusercontent.com/e18d22b9cb03c9c0ab5e0ee58da3df9482377976a148c65d2f82fadf7967bd49/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f70657465686f7573746f6e2f6e686965752d7068702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/petehouston/nhieu-php)[![Build Status](https://camo.githubusercontent.com/1df2c90da156722fa39d96e0eb7357a53425675d92522c618238ed61f9d26c15/68747470733a2f2f7472617669732d63692e6f72672f70657465686f7573746f6e2f6e686965752d7068702e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/petehouston/nhieu-php)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)

A very simple helper library for pluralizing Vietnamese.

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

[](#installation)

Via Composer:

```
$ composer require petehouston/nhieu-php

```

Usage
-----

[](#usage)

Make sure to include the `autoload.php`:

```
require 'vendor/autoload.php';
```

Just call a simple function `nhieu($word, $count = 11)`:

```
nhieu("xe", 0); // không xe

nhieu("ô tô", 2); // hai ô tô

nhieu("cái bánh", 8); // tám cái bánh

nhieu("người"); // nhiều người

nhieu("lập trình viên", -100); // không lập trình viên
```

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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

Unknown

Total

1

Last Release

3623d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e3bd650ae2924847027ca5ff3cd7d1c0dd2d5f87bbb5e218bd273a32928e727e?d=identicon)[petehouston](/maintainers/petehouston)

---

Top Contributors

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

---

Tags

phpstringlanguagepluralizepluralizationvietnamese

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/petehouston-nhieu-php/health.svg)

```
[![Health](https://phpackages.com/badges/petehouston-nhieu-php/health.svg)](https://phpackages.com/packages/petehouston-nhieu-php)
```

###  Alternatives

[coduo/php-to-string

Simple library that converts PHP value into strings

27112.7M10](/packages/coduo-php-to-string)[codezero/laravel-localized-routes

A convenient way to set up, manage and use localized routes in a Laravel app.

543638.1k4](/packages/codezero-laravel-localized-routes)[lasserafn/php-string-script-language

Detect language/encoding of a string in PHP

204.2M2](/packages/lasserafn-php-string-script-language)[zakirullin/mess

Convenient array-related routine &amp; better type casting

21228.9k2](/packages/zakirullin-mess)

PHPackages © 2026

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