PHP code example of laravel-ready / open-google-translate

1. Go to this page and download the library: Download laravel-ready/open-google-translate 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/ */

    

laravel-ready / open-google-translate example snippets


use LaravelReady\OpenGoogleTranslate\Translator;

$response = Translator::translate('When was the last time you used google translate?', 'en', 'tr');
bash
php artisan vendor:publish --tag=open-google-translate-config