congraph / locales
There is no license information available for the latest version (v2.0.3) of this package.
v2.0.3
2026-04-11 09:08 UTC
Requires
- php: ^8.3 || ^8.4 || ^8.5
- congraph/contracts: ^2.0 || dev-main || dev-master
- congraph/core: ^2.0 || dev-main || dev-master
Requires (Dev)
- orchestra/testbench: 11.x-dev
- phpunit/phpunit: ^12.0
This package is auto-updated.
Last update: 2026-04-12 09:55:06 UTC
README
congraph/locales manages available locales in a Congraph installation.
Responsibilities
- locale persistence
- locale CRUD commands and validators
- locale repository bindings
This package is used by eav and any localized content workflows.
Installation
composer require congraph/locales
Laravel package provider:
Typical usage
Use the package to:
- create locales like
en_US,sr_RS, orfr_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
Install dependencies
cd /Users/nikolap/git/np/congraph/packages/locales
composer update -W
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
- preserve locale code normalization behavior
- keep tests env-driven instead of hardcoding a database backend
- prefer PostgreSQL-safe and SQLite-safe queries