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

Abandoned → [weglot/translate-laravel](/?search=weglot%2Ftranslate-laravel)ArchivedLaravel-package[Localization &amp; i18n](/categories/localization)

weglot/weglot-laravel
=====================

Seamless integration of Weglot into your Laravel project

0.3.6(7y ago)3593[2 issues](https://github.com/weglot/translate-laravel/issues)MITPHP

Since May 2Pushed 5y ago7 watchersCompare

[ Source](https://github.com/weglot/translate-laravel)[ Packagist](https://packagist.org/packages/weglot/weglot-laravel)[ Docs](https://weglot.com/)[ RSS](/packages/weglot-weglot-laravel/feed)WikiDiscussions develop Synced yesterday

READMEChangelogDependencies (3)Versions (14)Used By (0)

⚠️ This package is deprecated ⚠️
================================

[](#️-this-package-is-deprecated-️)

[Create a new project](https://dashboard.weglot.com/projects/create) and use the subdomain integration (Technology: Other) to translate your Laravel website.

---

[![](https://camo.githubusercontent.com/2abe130a523b0e07d11bf55bb9d4ec42f44512e5844b3fc43b6cb4be632eb8ac/68747470733a2f2f63646e2e7765676c6f742e636f6d2f6c6f676f2f6c6f676f2d686f722e706e67)](https://camo.githubusercontent.com/2abe130a523b0e07d11bf55bb9d4ec42f44512e5844b3fc43b6cb4be632eb8ac/68747470733a2f2f63646e2e7765676c6f742e636f6d2f6c6f676f2f6c6f676f2d686f722e706e67)

Laravel Package
===============

[](#laravel-package)

[![WeglotSlack](https://camo.githubusercontent.com/074c1ade2fbbc239c1ee37de8addd453d876c47e2d3909e22db8a069a69a500b/68747470733a2f2f7765676c6f742d636f6d6d756e6974792e6e6f772e73682f62616467652e737667)](https://weglot-community.now.sh/)[![Latest Stable Version](https://camo.githubusercontent.com/2053288844eccc43d897e54ffe4ee53399bc4edb450b66de7e61523d670486f5/68747470733a2f2f706f7365722e707567782e6f72672f7765676c6f742f7472616e736c6174652d6c61726176656c2f762f737461626c65)](https://packagist.org/packages/weglot/translate-laravel)[![Maintainability](https://camo.githubusercontent.com/04ad0bc434478a393d07e8dd123676acc57f42472429f3bdbd1e577efd73de43/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f35373434333261326663623637323331613130392f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/weglot/translate-laravel/maintainability)[![License](https://camo.githubusercontent.com/48353c9d89c8aebbb2be903340399dc76025a16afa84c30475bb4bd57bb5ce5b/68747470733a2f2f706f7365722e707567782e6f72672f7765676c6f742f7472616e736c6174652d6c61726176656c2f6c6963656e7365)](https://packagist.org/packages/weglot/translate-laravel)

Overview
--------

[](#overview)

Seamless integration of Weglot into your Laravel project.

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

[](#requirements)

- PHP version 5.5 and later
- Laravel 5.\*
- Weglot API Key, starting at [free level](https://dashboard.weglot.com/register?origin=7)

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

[](#installation)

You can install the library via [Composer](https://getcomposer.org/). Run the following command:

```
composer require weglot/translate-laravel
```

To use the library, use Composer's [autoload](https://getcomposer.org/doc/01-basic-usage.md#autoloading):

```
require_once __DIR__. '/vendor/autoload.php';
```

Getting Started
---------------

[](#getting-started)

### Package Register

[](#package-register)

This package use auto-discovery, when you require it from composer, you should have nothing to do and Provider gonna be added automatically to your `config/app.php` providers list.

If this doesn't work, you can add our provider to the `config/app.php`, as following:

```
return [
    // ...

    'providers' => [
        // ... Other packages ...
        Weglot\Translate\TranslateServiceProvider::class
    ],

    // ...
];
```

### Quick configuration

[](#quick-configuration)

As usual for Laravel packages, you can publish configuration files by doing:

```
$ php artisan vendor:publish --provider="Weglot\Translate\TranslateServiceProvider" --tag="config"
```

You'll find the configuration file in `config/weglot-translate.php` with default values. If you want to go deeper in [configuration](#configuration), I suggest you to consult the [corresponding part](#configuration) of this README.

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

[](#configuration)

Here is a full configuration file:

```
