Download the PHP package parfumix/laravel-translator without Composer
On this page you can find all versions of the php package parfumix/laravel-translator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download parfumix/laravel-translator
More information about parfumix/laravel-translator
Files in parfumix/laravel-translator
Package laravel-translator
Short Description Translator for Laravel
License MIT
Homepage https://github.com/parfumix/laravel-translator
Informations about the package laravel-translator
Introduction
Laravel translator allow you to easy translate your website using different drivers like File, Database and others.
Instalation
You can use the composer
package manager to install. From console run:
or add to your composer.json file
"parfumix/laravel-translator": "v1.0"
You have to publish package files using
Configuration
To register package you have to follow standart procedure registering serviceProvider class .Open your configuration file located in config/app.php and search for array of providers:
Basic usage
Before using translator you have to publish your configuration file and select driver which you want to use
After all that you just have to use :
Extending
You can register own translator drivers which have will have custom business logic . But for the first register it in your configuration file
and create you class which implelement Translatable interface:
All versions of laravel-translator with dependencies
flysap/support Version dev-master
php Version >=5.4.0
laravel/framework Version ~5.0
illuminate/cache Version ~5.0