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 today

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 26% of packages

Maintenance31

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity43

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

726d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/87954417?v=4)[Joshua Wallace](/maintainers/jdw5)[@jdw5](https://github.com/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

[spatie/laravel-permission

Permission handling for Laravel 12 and up

12.9k102.4M1.4k](/packages/spatie-laravel-permission)[spatie/laravel-pdf

Create PDFs in Laravel apps

1.0k4.8M47](/packages/spatie-laravel-pdf)[dedoc/scramble

Automatic generation of API documentation for Laravel applications.

2.1k11.2M99](/packages/dedoc-scramble)[outhebox/laravel-translations

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

813100.4k](/packages/outhebox-laravel-translations)[spatie/laravel-passkeys

Use passkeys in your Laravel app

471890.7k38](/packages/spatie-laravel-passkeys)[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3914.6k](/packages/rawilk-profile-filament-plugin)

PHPackages © 2026

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