1. Go to this page and download the library: Download dreams/langtranslator library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
dreams / langtranslator example snippets
# Add ser
# Add to database.php config redis in laravel 3 project
'trans' => array(
'host' => 'X.X.X.X',
'password' => null,
'port' => 6379,
'database' => X
),
# Add to database.php config redis in > laravel 5 project
'trans' => [
'host' => env('REDIS_HOST', 'localhost'),
'password' => env('REDIS_PASSWORD', null),
'port' => env('REDIS_PORT', 6379),
'database' => env('REDIS_TRANS_DB', X)
],
# Add to .env config in > laravel 5 project
REDIS_TRANS_DB="X"
# Comment Translate Autoload Service Provider app.php config
Illuminate\Translation\TranslationServiceProvider::class,
# Add to Autoload Service Providers app.php config
Dreams\LangTranslator\LangTranslatorProvider::class,
# Run dumpautoload
php composer.phar dumpautoload
# Run publish config vendor
php artisan vendor:publish --provider="Dreams\LangTranslator\LangTranslatorProvider"
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.