PHPackages                             conquest/relay - 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. conquest/relay

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

conquest/relay
==============

Share localized, backend-driven messages as text to your Inertia frontend.

v0.1.0(1y ago)07MITPHPPHP ^8.2CI passing

Since Jul 6Pushed 1y ago1 watchersCompare

[ Source](https://github.com/honedlabs/relay)[ Packagist](https://packagist.org/packages/conquest/relay)[ Docs](https://github.com/conquest/relay)[ GitHub Sponsors](https://github.com/Jdw5)[ RSS](/packages/conquest-relay/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (13)Versions (2)Used By (0)

Share localized, backend-driven messages as text to your Inertia frontend.
==========================================================================

[](#share-localized-backend-driven-messages-as-text-to-your-inertia-frontend)

[![Latest Version on Packagist](https://camo.githubusercontent.com/977b9287d299b95f7b24ead85cecf7a2ebaee9b7730852c42898626f0c21b596/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f636f6e71756573742f72656c61792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/conquest/relay)[![GitHub Tests Action Status](https://camo.githubusercontent.com/4d92913efd7aebc80c092224e205867811232f6e1c5ba81c975b25d1f668e4c1/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6a6477352f636f6e71756573742d72656c61792f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/jdw5/conquest-relay/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/0ecc23718b9e9e3fbf701392941988a289953e404b11704118174b4c4555a629/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6a6477352f636f6e71756573742d72656c61792f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/jdw5/conquest-relay/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/1c0de70b2d1111f747dd8883ba22733f2b1da2f42ae21f718d8e70c95e0a46f8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636f6e71756573742f72656c61792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/conquest/relay)

This is where your description should go. Limit it to a paragraph or two. Consider adding a small example.

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

[](#installation)

You can install the package via composer:

```
composer require conquest/relay
```

You can publish and run the migrations with:

You can publish the config file with:

```
php artisan vendor:publish --tag="relay-config"
```

This is the contents of the published config file:

```
return [
    'share' => true,
    'path' => base_path('lang'),
    'languages' => [
        'en' => 'English',
    ],
    'excludes' => [
        'validation.php',
    ],
];
```

Usage
-----

[](#usage)

Inside a controller, you can append translations to your application using the `relay()` helper.

```
relay();
```

By default, this will share all translations from the `lang` or the `path` set in the config directory to the frontend. You can customize this behavior by publishing the config file and modifying the `excludes` array. This array is cahced for each available language defined in the `config('relay.languages')` array. You can select to only pass a subset of translations to the frontend by adding keys using dot notations to reduce the amount of data sent over the wire. This accepts wildcard characters as well.

```
relay()->keys('messages.*', 'auth.login')
```

Ensure that the `RelaysTranslations` middleware is applied to any Inertia based routes. You can extend this middleware to overwrite the `HandlesInertiaRequests` middleware in the Laravel starter packages, as this package itself extends the Inertia middleware.

Testing
-------

[](#testing)

```
composer test
```

Credits
-------

[](#credits)

- [Joshua Wallace](https://github.com/jdw5)

License
-------

[](#license)

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

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance32

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 91.7% 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

681d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/15a6681aedaa970f3cdc6061a522528ee8d5b9de8003ac0ba0a32bd445b28442?d=identicon)[jdw5](/maintainers/jdw5)

---

Top Contributors

[![jdw5](https://avatars.githubusercontent.com/u/87954417?v=4)](https://github.com/jdw5 "jdw5 (22 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (1 commits)")

---

Tags

laraveltranslationsinertiaRelayconquest

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/conquest-relay/health.svg)

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

###  Alternatives

[outhebox/laravel-translations

Manage your Laravel translations with a beautiful UI. Add, edit, delete, import, and export translations with ease.

80687.6k](/packages/outhebox-laravel-translations)[askdkc/breezejp

Laravel Starter Kit (Livewire+Breeze+Laravel UI+Jetstream)や標準のバリデーションメッセージを全て一瞬で日本語化し、言語切替機能も提供するパッケージです / This package provides all-in-one Japanese translation for Laravel StarterKit (Livewire StarterKit, Breeze, Laravel UI and Jetstream) packages and validation messages with language switching feature.

590244.8k1](/packages/askdkc-breezejp)[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.

3812.2k](/packages/erag-laravel-lang-sync-inertia)[statikbe/laravel-filament-chained-translation-manager

A translation manager tool for Laravel Filament, that makes use of the Laravel Chained Translator.

92108.7k](/packages/statikbe-laravel-filament-chained-translation-manager)[vormkracht10/laravel-mails

Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.

24149.7k](/packages/vormkracht10-laravel-mails)[elegantly/laravel-translator

All on one translations management for Laravel

6216.9k](/packages/elegantly-laravel-translator)

PHPackages © 2026

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