PHPackages                             viniciusgava/google-translate-api - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. viniciusgava/google-translate-api

ActiveLibrary[API Development](/categories/api)

viniciusgava/google-translate-api
=================================

Google translate API V2 client for PHP

3.1.0(4y ago)25391.4k↑21.6%124MITPHPPHP &gt;=7.2

Since Oct 8Pushed 4y ago1 watchersCompare

[ Source](https://github.com/viniciusgava/google-translate-php-client)[ Packagist](https://packagist.org/packages/viniciusgava/google-translate-api)[ Docs](https://github.com/viniciusgava/google-translate-php-client)[ RSS](/packages/viniciusgava-google-translate-api/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (7)Dependencies (3)Versions (8)Used By (4)

Google Translate API PHP Client
===============================

[](#google-translate-api-php-client)

[![Build Status](https://camo.githubusercontent.com/0bd18c296416dd237c93e5a81da79282183e8dd5266d3ba9e6c2661c7d6da1c3/68747470733a2f2f7472617669732d63692e6f72672f76696e6963697573676176612f676f6f676c652d7472616e736c6174652d7068702d636c69656e742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/viniciusgava/google-translate-php-client)

This project abstract the google translate api versio 2.0 in PHP. The lib has been refactored to support unit tests, composer, and a better architecture.

Installation
------------

[](#installation)

Use composer to install the lib

```
composer require viniciusgava/google-translate-api

```

Examples of Usage
-----------------

[](#examples-of-usage)

### Translate with source language detection

[](#translate-with-source-language-detection)

```
