wbtranslator / wbt-plugin-laravel by wbtranslator

Laravel plugin for WBTranslator
66
1
2
Package Data
Maintainer Username: wbtranslator
Maintainer Contact: sergiy@futurenet.club (Sergiy Tsybulko)
Package Create Date: 2017-07-24
Package Last Update: 2018-01-08
Language: PHP
License: MIT
Last Refreshed: 2025-02-06 03:06:04
Package Statistics
Total Downloads: 66
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 1
Total Watchers: 2
Total Forks: 1
Total Open Issues: 0

WBTranslator Plugin Laravel

Installation by composer

$ composer require wbtranslator/wbt-plugin-laravel dev-master

Add TranslatorServiceProvider to PROJECT_PATH/config/app.php in section 'providers'

'providers' => [
    // ...
    WBTranslator\PluginLaravel\Providers\WBTranslatorServiceProvider::class
] 

Publish the config using the following command

$ php artisan vendor:publish --provider="WBTranslator\PluginLaravel\Providers\WBTranslatorServiceProvider"

Set folders permissions with write access from server.

$ chmod -R 775 ./resources/lang/

Set API KEY

Put API KEY to .env file

Example: WBT_API_KEY=API_KEY

Send abstractions to WBTranslator

$ php artisan wbt:abstractions:export 

Get abstractions from WBTranslator and save them to lang directory

$ php artisan wbt:abstractions:import