dejurin/php-google-translate-for-free - пхп библиотека для работы с гугл переводчиком
$source = 'en';
$target = 'ru';
$attempts = 5;
$arr = array('hello','world');
$tr = new GoogleTranslateForFree();
$result = $tr->translate($source, $target, $arr, $attempts);
var_dump($result); 
/*
        array(2) {
          [0]=>
          string(24) "Здравствуйте"
          [1]=>
          string(6) "Мир"
        }
*/
https://github.com/dejurin/php-google-translate-for-free