PHPackages                             vicent/laque-swahil-locale - 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. vicent/laque-swahil-locale

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

vicent/laque-swahil-locale
==========================

Swahili locale helpers: ICU-based dates/numbers, lightweight inflector, terminology dictionary, and optional PSR-15 locale negotiation. Framework-agnostic, SOLID.

v1.0.0(9mo ago)00MITPHPPHP &gt;=8.1CI passing

Since Aug 13Pushed 9mo agoCompare

[ Source](https://github.com/xaverymsomi/Laque-Swahili-Locale-Package)[ Packagist](https://packagist.org/packages/vicent/laque-swahil-locale)[ RSS](/packages/vicent-laque-swahil-locale/feed)WikiDiscussions master Synced 1mo ago

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

vicent/laque-swahil-locale
==========================

[](#vicentlaque-swahil-locale)

[![codecov](https://camo.githubusercontent.com/f50c4040ea46dda7e880014e2c762c48c4ed6f25b1ed9c44a3d9b3a230263087/68747470733a2f2f636f6465636f762e696f2f67682f766963656e742d6465762f6c617175652d73776168696c2d6c6f63616c652f6272616e63682f6d61696e2f67726170682f62616467652e737667)](https://codecov.io/gh/vicent-dev/laque-swahil-locale)[![Latest Stable Version](https://camo.githubusercontent.com/b8027343a9c8f35dfcb8e0fe6929a85151e591d0f593045558af7739b9605edf/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f766963656e742f6c617175652d73776168696c2d6c6f63616c652e737667)](https://packagist.org/packages/vicent/laque-swahil-locale)[![Total Downloads](https://camo.githubusercontent.com/cd896f789f5e5ddfab157dadcc390f594ec8f377c30258040fbfb209315efcd1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f766963656e742f6c617175652d73776168696c2d6c6f63616c652e737667)](https://packagist.org/packages/vicent/laque-swahil-locale)

[![Laque Swahili Locale logo](assets/logo.svg)](assets/logo.svg)

Framework‑agnostic, **SOLID** PHP library for Swahili localization:

- ICU/intl date, time, number, and currency formatting (with PHP fallback)
- Lightweight Swahili inflector (noun classes + passive verbs for UX)
- Terminology dictionary (Sw ↔ En)
- Optional PSR‑15 locale negotiation middleware

**Author**: Vicent Msomi

Install
-------

[](#install)

```
composer require vicent/laque-swahil-locale
```

Quick start
-----------

[](#quick-start)

```
use Laque\SwahiliLocale\Locale\DateNumber\IntlDateNumberFormatter;
use Laque\SwahiliLocale\Locale\Inflection\SwahiliInflector;
use Laque\SwahiliLocale\Locale\Terms\Terminology;
use Laque\SwahiliLocale\Locale\Terms\PhpFileLoader;

$fmt = class_exists(\NumberFormatter::class)
  ? new IntlDateNumberFormatter('sw_TZ')
  : new Laque\SwahiliLocale\Locale\DateNumber\FallbackDateNumberFormatter('sw_TZ');

$infl = new SwahiliInflector(['mtumiaji'=>'watumiaji']);
$terms = new Terminology(new PhpFileLoader(__DIR__.'/resources/terms'));

echo $fmt->formatCurrency(1250000, 'TZS');
echo $infl->pluralizeNoun('kifurushi', 3);
echo $terms->translate('Jina Kamili', 'sw_TZ', 'en_US');
```

MIT © 2025 Vicent Msomi

Packagist Auto-Update
---------------------

[](#packagist-auto-update)

- After publishing to GitHub, submit the repo to Packagist.
- In Packagist (Maintainer settings), **enable GitHub Hook** so new tags push updates automatically.
- Alternatively, create a Packagist **API token** and set up a GitHub Action to ping Packagist on tag (optional).

Examples
--------

[](#examples)

Run from repo root after `composer install`:

```
php examples/formatting.php
php examples/inflection.php
php examples/terminology.php
php examples/middleware-demo.php
```

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance58

Moderate activity, may be stable

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity44

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

Unknown

Total

1

Last Release

273d ago

### Community

Maintainers

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

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/vicent-laque-swahil-locale/health.svg)

```
[![Health](https://phpackages.com/badges/vicent-laque-swahil-locale/health.svg)](https://phpackages.com/packages/vicent-laque-swahil-locale)
```

###  Alternatives

[cakephp/cakephp

The CakePHP framework

8.8k18.5M1.6k](/packages/cakephp-cakephp)[bref/bref

Bref is a framework to write and deploy serverless PHP applications on AWS Lambda.

3.4k9.6M55](/packages/bref-bref)[jaxon-php/jaxon-core

Jaxon is an open source PHP library for easily creating Ajax web applications

73142.3k25](/packages/jaxon-php-jaxon-core)[neos/flow

Flow Application Framework

862.0M451](/packages/neos-flow)[neos/flow-development-collection

Flow packages in a joined repository for pull requests.

144179.3k3](/packages/neos-flow-development-collection)[windwalker/framework

The next generation PHP framework.

25639.1k1](/packages/windwalker-framework)

PHPackages © 2026

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