PHPackages                             put-translations/laravel - 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. put-translations/laravel

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

put-translations/laravel
========================

A Laravel package for syncing translations with an external API

0.1.1(8mo ago)0296MITPHP

Since Aug 17Pushed 8mo ago1 watchersCompare

[ Source](https://github.com/Put-Translations/laravel)[ Packagist](https://packagist.org/packages/put-translations/laravel)[ RSS](/packages/put-translations-laravel/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)DependenciesVersions (2)Used By (0)

Put Translations for Laravel
============================

[](#put-translations-for-laravel)

Put Translations is a Laravel package that simplifies the process of managing and synchronizing translations for your multi-language applications. It integrates seamlessly with the Put.sh translation service to automate the translation process.

Features
--------

[](#features)

- Automatic extraction of translatable strings from your Laravel project
- Easy synchronization with the Put.sh translation service
- Support for multiple target languages
- Tracking of translation usage in your application
- Command-line interface for easy management

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

[](#installation)

1. Install the package via Composer:

    ```
    composer require put-translations/laravel
    ```
2. (Optionally) Publish the configuration file:

    ```
    php artisan vendor:publish --provider="PutTranslations\Laravel\TranslationSyncServiceProvider" --tag="config"
    ```
3. Add your Put.sh API key to your `.env` file:

    ```
    PUT_TRANSLATIONS_API_KEY=your_api_key_here
    ```

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

[](#configuration)

The package uses environment variables for configuration. Add the following to your `.env` file:

```
PUT_API_KEY=your_api_key_here
PUT_API_URL=
```

Here's what each variable does:

- `PUT_API_KEY`: Your API key from Put.sh
- `PUT_API_URL`: (Optional) If you use a self hosted instance then update this to your URL

You can adjust these values according to your project's needs.

Usage
-----

[](#usage)

### Extracting and Syncing Translations

[](#extracting-and-syncing-translations)

To extract translatable strings from your project and sync them with Put.sh, run:

```
php artisan put:sync
```

This command will:

1. Scan your project for translatable strings
2. Send these strings to Put.sh for translation
3. Save the translated strings back to your project

### Using Translations in Your Code

[](#using-translations-in-your-code)

You can use the standard Laravel translation functions in your code:

```
__('Hello, World!');
trans('Welcome to our app');
@lang('Thank you for your purchase');
```

Or use the custom `t()` helper function:

```
t('This string will be translated');
```

In Blade templates:

```
{{ t('Translate me') }}
```

Getting an API Key
------------------

[](#getting-an-api-key)

To use this package, you need an API key from Put.sh. Follow these steps:

1. Go to [put.sh](https://put.sh)
2. Sign up for an account or log in
3. Navigate to your projector create a new project
4. Go to the Configuration tab
5. Copy the API key and add it to your `.env` file

Contributing
------------

[](#contributing)

Contributions are welcome! Please feel free to submit a Pull Request.

License
-------

[](#license)

This package is open-sourced software licensed under the MIT license.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance58

Moderate activity, may be stable

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity25

Early-stage or recently created project

 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

269d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/36f2d2f8257de7bb64d235129d6741fa57baf175b20ded81fc985138651de943?d=identicon)[hgsso](/maintainers/hgsso)

---

Top Contributors

[![harryspink](https://avatars.githubusercontent.com/u/3799258?v=4)](https://github.com/harryspink "harryspink (5 commits)")

### Embed Badge

![Health badge](/badges/put-translations-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/put-translations-laravel/health.svg)](https://phpackages.com/packages/put-translations-laravel)
```

###  Alternatives

[symfony/translation

Provides tools to internationalize your application

6.6k836.5M2.1k](/packages/symfony-translation)[nesbot/carbon

An API extension for DateTime that supports 281 different languages.

169661.4M4.8k](/packages/nesbot-carbon)[joedixon/laravel-translation

A tool for managing all of your Laravel translations

717911.4k11](/packages/joedixon-laravel-translation)[illuminate/translation

The Illuminate Translation package.

6936.4M495](/packages/illuminate-translation)[lajax/yii2-translate-manager

Translation management extension for Yii 2

227578.8k13](/packages/lajax-yii2-translate-manager)[larswiegers/laravel-translations-checker

Make sure your laravel translations are checked and are included in all languages.

256423.2k2](/packages/larswiegers-laravel-translations-checker)

PHPackages © 2026

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