Skip to content

Commit

Permalink
Some readme stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Stichoza committed Oct 28, 2015
1 parent 8159e14 commit 901518c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.md
Expand Up @@ -17,7 +17,7 @@ Or edit your project's `composer.json` to require `stichoza/google-translate-php

```json
"require": {
"stichoza/google-translate-php": "~3.1"
"stichoza/google-translate-php": "~3.2"
}
```

Expand Down Expand Up @@ -53,6 +53,12 @@ Or call a static method
echo TranslateClient::translate('en', 'ka', 'Hello again');
```

As of v3.2 multiple sentence/array translation is available.

```php
echo $tr->translate(['I can dance', 'I like trains', 'Double rainbow']);
```

### Advanced Configuration

This package uses [Guzzle](https://github.com/guzzle/guzzle) for HTTP requests. You can pass an associative array of [guzzle client configuration options](http://guzzle.readthedocs.org/en/5.3/clients.html#creating-a-client) as a third parameter to `TranslateClient` constructor.
Expand Down

0 comments on commit 901518c

Please sign in to comment.