PHPackages                             a21/lexicon-client - 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. a21/lexicon-client

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

a21/lexicon-client
==================

Laravel client for Lexicon: pull translation JSON exports from a central Lexicon server.

1.0.0(today)00MITPHPPHP ^8.1

Since Jun 26Pushed todayCompare

[ Source](https://github.com/A21-Center/lexicon-client)[ Packagist](https://packagist.org/packages/a21/lexicon-client)[ Docs](https://github.com/A21-Center/lexicon-client)[ RSS](/packages/a21-lexicon-client/feed)WikiDiscussions main Synced today

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

a21/lexicon-client
==================

[](#a21lexicon-client)

Laravel package to connect a client application (Hub, Studio, Gallery…) to a central **Lexicon** translation server.

Requirements
------------

[](#requirements)

- PHP 8.1+
- Laravel 10.x

Install (Packagist)
-------------------

[](#install-packagist)

```
composer require a21/lexicon-client
php artisan vendor:publish --tag=lexicon-config
php artisan lexicon:init
```

Configuration
-------------

[](#configuration)

Add to `.env` (never commit secrets):

```
LEXICON_API_URL=https://lexicon.a21.com
LEXICON_CLIENT_CODE=hub
LEXICON_PROJECT_CODE=hub
LEXICON_CLIENT_SECRET=lex_sk_live_xxxxxxxx
LEXICON_ENVIRONMENT=production
```

Optional manifest at project root: `lexicon.json` (no secret in this file).

Commands
--------

[](#commands)

CommandDescription`php artisan lexicon:init`Create `lexicon.json` + append `.env.example``php artisan lexicon:status`Check server connection and project metadata`php artisan lexicon:export`Request export bundle from server`php artisan lexicon:pull`Export + write JSON files locally`php artisan lexicon:sync`Placeholder (source scan coming later)Examples:

```
php artisan lexicon:status
php artisan lexicon:pull --all
php artisan lexicon:pull --lang=fr --area=catalog --only-approved --dry-run
```

Server setup
------------

[](#server-setup)

Create an integration client on the Lexicon server (admin API). Copy the secret **once**, then configure this package.

See the Lexicon server docs: `docs/client-package.md`, `docs/integration-api.md`, `docs/export-cli.md`.

Security
--------

[](#security)

- Keep `LEXICON_CLIENT_SECRET` server-side only (`.env`).
- Never put the secret in `lexicon.json` or frontend code.

License
-------

[](#license)

MIT

###  Health Score

39

—

LowBetter than 85% of packages

Maintenance100

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity42

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

0d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/154073321?v=4)[Mohammed Yamini](/maintainers/MohaYamini)[@MohaYamini](https://github.com/MohaYamini)

---

Top Contributors

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

---

Tags

laravellocalizationi18ntranslationLexicona21

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/a21-lexicon-client/health.svg)

```
[![Health](https://phpackages.com/badges/a21-lexicon-client/health.svg)](https://phpackages.com/packages/a21-lexicon-client)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[larastan/larastan

Larastan - Discover bugs in your code without running it. A phpstan/phpstan extension for Laravel

6.4k51.0M7.6k](/packages/larastan-larastan)[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

76518.2M120](/packages/laravel-mcp)[defstudio/telegraph

A laravel facade to interact with Telegram Bots

815320.5k3](/packages/defstudio-telegraph)[api-platform/laravel

API Platform support for Laravel

59156.3k11](/packages/api-platform-laravel)[erag/laravel-lang-sync-inertia

A powerful Laravel package for syncing and managing language translations across backend and Inertia.js (Vue/React) frontends, offering effortless localization, auto-sync features, and smooth multi-language support for modern Laravel applications.

4821.5k](/packages/erag-laravel-lang-sync-inertia)

PHPackages © 2026

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