PHPackages                             congraph/locales - 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. congraph/locales

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

congraph/locales
================

v2.0.3(4mo ago)01983PHPPHP ^8.3 || ^8.4 || ^8.5

Since Nov 7Pushed 4mo ago2 watchersCompare

[ Source](https://github.com/congraphcms/locales)[ Packagist](https://packagist.org/packages/congraph/locales)[ RSS](/packages/congraph-locales/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (2)Dependencies (8)Versions (10)Used By (3)

congraph/locales
================

[](#congraphlocales)

`congraph/locales` manages available locales in a Congraph installation.

Responsibilities
----------------

[](#responsibilities)

- locale persistence
- locale CRUD commands and validators
- locale repository bindings

This package is used by `eav` and any localized content workflows.

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

[](#installation)

```
composer require congraph/locales
```

Laravel package provider:

- [LocalesServiceProvider.php](/Users/nikolap/git/np/congraph/packages/locales/LocalesServiceProvider.php)

Typical usage
-------------

[](#typical-usage)

Use the package to:

- create locales like `en_US`, `sr_RS`, or `fr_FR`
- fetch configured locales
- drive localized entity fields in `eav`

In most apps this package is not consumed directly by controllers; instead it is surfaced through `laravel-api`.

Development
-----------

[](#development)

### Install dependencies

[](#install-dependencies)

```
cd /Users/nikolap/git/np/congraph/packages/locales
composer update -W
```

### Run tests

[](#run-tests)

```
composer test
composer test:pgsql
```

`composer test` is fast and SQLite-backed by default.
`composer test:pgsql` uses an ephemeral PostgreSQL container.

Contribution notes
------------------

[](#contribution-notes)

- preserve locale code normalization behavior
- keep tests env-driven instead of hardcoding a database backend
- prefer PostgreSQL-safe and SQLite-safe queries

###  Health Score

52

—

FairBetter than 96% of packages

Maintenance77

Regular maintenance activity

Popularity14

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity86

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 75% 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 ~615 days

Recently: every ~284 days

Total

6

Last Release

125d ago

Major Versions

v1.1.0 → v2.0.02026-04-11

PHP version history (4 changes)v1.0betaPHP &gt;=5.4.0

v1.0.0PHP ^8.1.0

v1.1.0PHP ^8.2.0

v2.0.0PHP ^8.3 || ^8.4 || ^8.5

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3585404?v=4)[Nikola Plavšić](/maintainers/nikolaplavsic)[@nikolaplavsic](https://github.com/nikolaplavsic)

---

Top Contributors

[![nikolaplavsic](https://avatars.githubusercontent.com/u/3585404?v=4)](https://github.com/nikolaplavsic "nikolaplavsic (3 commits)")[![veljamatic](https://avatars.githubusercontent.com/u/1091355?v=4)](https://github.com/veljamatic "veljamatic (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/congraph-locales/health.svg)

```
[![Health](https://phpackages.com/badges/congraph-locales/health.svg)](https://phpackages.com/packages/congraph-locales)
```

###  Alternatives

[smarty-gettext/smarty-gettext

Gettext plugin enabling internationalization in Smarty Package files

752.5M8](/packages/smarty-gettext-smarty-gettext)[renatomarinho/laravel-multi-language

Laravel Multi Language

235.1k](/packages/renatomarinho-laravel-multi-language)

PHPackages © 2026

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