services/google/google_translate.php

Summary

Maintainability
A
0 mins
Test Coverage
#!/usr/bin/php
<?php

$config = [
    'require_services' => ['guzzlehttp_guzzle'],
    'git_urls' => ['https://github.com/yfix/google-translate-php.git' => 'google_translate/'],
    'autoload_config' => ['google_translate/src/Stichoza/GoogleTranslate/' => 'Stichoza\GoogleTranslate'],
    'example' => function () {
        $tr = new Stichoza\GoogleTranslate\TranslateClient('en', 'ru');
        echo $tr->translate('Hello World!');
    },
];
if ($return_config) {
    return $config;
} require_once __DIR__ . '/_yf_autoloader.php'; new yf_autoloader($config);