Download the PHP package bonnier/laravel-translation-provider without Composer
On this page you can find all versions of the php package bonnier/laravel-translation-provider. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download bonnier/laravel-translation-provider
More information about bonnier/laravel-translation-provider
Files in bonnier/laravel-translation-provider
Package laravel-translation-provider
Short Description Laravel package to implement translations from Translation Manager
License
Informations about the package laravel-translation-provider
Laravel Translation Provider
Laravel package that retrieves translations strings from Translation Manager and makes them available for Laravel translation functions.
Usage
To use the translator call
Btrans::translate($key, $replace, $locale)
instead of
trans($key, $replace, $locale)
Add translation
To add a translation, run:
php artisan bonnier:translation:add "translation-key" "Translation value"
Update translation
To update an exisiting translations, run:
php artisan bonnier:translation:update "translation-key" "Translation value"
Delete translation
To delete an existing translation, run: VERY DESTRUCTIVE
php artisan bonnier:translation:delete "translation-key"
Getting translations
To get all translations from Translation Manager, run:
php artisan bonnier:translation:get
Setup
composer require bonnier/laravel-translation-provider
-
Register the provider in config/app.php`
-
Setup configuration in
.env
-
Set up in
config/services.php
- Set up in
config/app.php
All versions of laravel-translation-provider with dependencies
illuminate/console Version ^7.0
laravel/framework Version ^7.0
guzzlehttp/guzzle Version ^7.0
illuminate/http Version ^7.0
bonnier/context-laravel Version ^2.0