PHPackages                             enflow/component-inflector - 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. [Localization &amp; i18n](/categories/localization)
4. /
5. enflow/component-inflector

AbandonedArchivedLibrary[Localization &amp; i18n](/categories/localization)

enflow/component-inflector
==========================

Multilingual inflector that can singularize and pluralize words.

v0.3.0(6y ago)06.7kMITPHPPHP ^7.2.5

Since Jul 6Pushed 6y ago1 watchersCompare

[ Source](https://github.com/enflow/component-inflector)[ Packagist](https://packagist.org/packages/enflow/component-inflector)[ Docs](https://github.com/enflow-nl/component-inflector)[ RSS](/packages/enflow-component-inflector/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (4)Dependencies (1)Versions (4)Used By (0)

Singularize and pluralize words in multiple languages
=====================================================

[](#singularize-and-pluralize-words-in-multiple-languages)

[![Latest Version on Packagist](https://camo.githubusercontent.com/9c4b9983ec2b792f92604fee345378119f743d59d3e0d0a37a34d278ae259525/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f656e666c6f772f636f6d706f6e656e742d696e666c6563746f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/enflow/component-inflector)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/2f41652b9ee59600a9b76c95645115fc6f282dfcfb6fff2c22b254615db2acd3/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f656e666c6f772d6e6c2f636f6d706f6e656e742d696e666c6563746f722f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/enflow-nl/component-inflector)[![Total Downloads](https://camo.githubusercontent.com/bb6ad6800efcfb72accbe81a3cabd5cfdd45637c186147e65e233645ebc1fbf5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f656e666c6f772f636f6d706f6e656e742d696e666c6563746f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/enflow/component-inflector)

The `enflow/component-inflector` package provides a easy way to singularize and pluralize words in multiple languages.

The following languages are currently supported. Pull requests are welcome!

- English (en)
- Dutch (nl)

Component is based on [`cakephp/utility`](https://github.com/cakephp/utility) and [`noud/cakephp-dutch`](https://github.com/noud/cakephp-dutch).

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

[](#installation)

You can install the package via composer:

```
composer require enflow/component-inflector
```

Usage
-----

[](#usage)

```
use Enflow\Component\Inflector\Inflector;

$inflector = Inflector::forLanguageCode('en');

echo $inflector->singularize('apples') // Outputs: apple
echo $inflector->pluralize('apple') // Outputs: apples
```

Or specify a custom language which extends the abstract `Language` class:

```
use Enflow\Component\Inflector\Inflector;

$inflector = Inflector::forLanguage(new YourLanguageClass());
```

Testing
-------

[](#testing)

```
$ composer test
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Michel Bardelmeijer](https://github.com/mbardelmeijer)
- [All Contributors](../../contributors)

Special thanks to [Freek Van der Herten](https://github.com/freekmurze) for providing the package template &amp; multiple useful packages.

About Enflow
------------

[](#about-enflow)

Enflow is a digital creative agency based in Alphen aan den Rijn, Netherlands. We specialize in developing web applications, mobile applications and websites. You can find more info [on our website](https://enflow.nl/en).

License
-------

[](#license)

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

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

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 ~668 days

Total

3

Last Release

2308d ago

PHP version history (3 changes)0.1.0PHP &gt;=7.0

v0.2.0PHP ^7.1

v0.3.0PHP ^7.2.5

### Community

Maintainers

![](https://www.gravatar.com/avatar/665ee1919e7c3d12f556cb913d0012a632271f912dc9c3250b7da67d7f3f4b16?d=identicon)[enflow](/maintainers/enflow)

---

Top Contributors

[![mbardelmeijer](https://avatars.githubusercontent.com/u/1583095?v=4)](https://github.com/mbardelmeijer "mbardelmeijer (11 commits)")

---

Tags

multilingualinflectorsingularizepluralizeenflow

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/enflow-component-inflector/health.svg)

```
[![Health](https://phpackages.com/badges/enflow-component-inflector/health.svg)](https://phpackages.com/packages/enflow-component-inflector)
```

###  Alternatives

[icanboogie/inflector

Multilingual inflector that transforms words from singular to plural, underscore to camel case, and more.

2122.5M71](/packages/icanboogie-inflector)[mmucklo/inflect

inflect - a memoizing inflector for php

4024.1M14](/packages/mmucklo-inflect)[themsaid/laravel-langman

Manage language files with ease.

873308.2k11](/packages/themsaid-laravel-langman)[typicms/base

A modular multilingual CMS built with Laravel, enabling developers to manage structured content like pages, news, events, and more.

1.6k20.4k](/packages/typicms-base)[asgardcms/platform

The AsgardCms application.

78960.8k](/packages/asgardcms-platform)[omgdef/yii2-multilingual-behavior

Port of the yii-multilingual-behavior for yii

143179.8k9](/packages/omgdef-yii2-multilingual-behavior)

PHPackages © 2026

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