2017 © Pedro Peláez
 

library translation-client

Google Translation API Client

image

google/translation-client

Google Translation API Client

  • Monday, July 1, 2013
  • by Opus1no2
  • Repository
  • 1 Watchers
  • 6 Stars
  • 177 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Google Translation Client

This is a minimalistic API client for Google Translation API, (*1)

Installation

Installation is conveniently provided via Composer., (*2)

To get started, install composer in your project:, (*3)

$ curl -s https://getcomposer.org/installer | php

Next, add a composer.json file containing the following:, (*4)

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

Finall, install!, (*5)

$ php composer.phar install

Usage

Using the Google Translation client is easy:, (*6)

``` php <?php, (*7)

require_once '../src/Client.php';, (*8)

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

```, (*10)

The Versions

01/07 2013

dev-master

9999999-dev

Google Translation API Client

  Sources   Download

by Travis Tillotson