There is no license information available for the latest version (dev-master) of this package.

Google Translation API Client

dev-master 2013-07-01 14:47 UTC

This package is not auto-updated.

Last update: 2021-11-22 13:47:36 UTC


This is a minimalistic API client for Google Translation API


Installation is conveniently provided via Composer.

To get started, install composer in your project:

$ curl -s | php

Next, add a composer.json file containing the following:

    "require": {
        "google/translation-client": "dev-master"

Finall, install!

$ php composer.phar install


Using the Google Translation client is easy:


require_once '../src/Client.php';

try {
    $client = new Goolge_Translate('YOUR API KEY');
        ->setText('If wishes were fishes, we\'d all cast nets')
} catch (Exception $e) {
    echo $e->getMessage();