NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist
Packagist, #1867 most downloaded on Packagist
Free Google Translate API PHP Package
Latest stable
v5.3.5
Last release 2 months ago
10 Sep 2026
Release timing varies
gaps range from 2 weeks to 10 months
Some releases are documented
notes for 21 of 53 stable releases
Nothing withdrawn
no release was ever pulled
12 years old
53 releases · first in 2014
Drag across the ruler to compare, or tap a release to open it.
Fix token generation for text containing emoji by @spliiit-marine in https://github.com/Stichoza/google-translate-php/pull/229
Full Changelog: https://github.com/Stichoza/google-translate-php/compare/v5.3.4...v5.3.5
> This is a quick fix release that fixes #225.
[!Note] This is a quick fix release that fixes #225.
gtx to webapp that fixes the 429 Too Many Requests errors that were returned on any request regardless of frequency, size or server IP.Full Changelog: https://github.com/Stichoza/google-translate-php/compare/v5.3.3...v5.3.4
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Add support for Guzzle 8 by @HecFranco in https://github.com/Stichoza/google-translate-php/pull/222
^9.6.34 for PHP 8.0 supportFull Changelog: https://github.com/Stichoza/google-translate-php/compare/v5.3.1...v5.3.3
Add very large text translation
Add very large text translation
Update test URLs to use mock.httpstatus.io instead of httpstat.us
Update test URLs to use mock.httpstatus.io instead of httpstat.us
PHP 8.4 compatibility by @prakash in https://github.com/Stichoza/google-translate-php/pull/216
Full Changelog: https://github.com/Stichoza/google-translate-php/compare/v5.2.0...v5.3.0
Nothing published for this version
Added ability to retrieve a list of supported languages by @a-drew in https://github.com/Stichoza/google-translate-php/pull/211
ext-dom)Full Changelog: https://github.com/Stichoza/google-translate-php/compare/v5.1.4...v5.2.0
Replace ${\d} delimiter with #{\d} to resolve currency bugs by @kylemilloy in https://github.com/Stichoza/google-translate-php/pull/202
${\d} delimiter with #{\d} to resolve currency bugs by @kylemilloy in https://github.com/Stichoza/google-translate-php/pull/202Full Changelog: https://github.com/Stichoza/google-translate-php/compare/v5.1.3...v5.1.4
Preserving Parameters Feature: Introducing the preserveParameters() method to preserve specific parameters during translation. Users can now retain pl
preserveParameters() method to preserve specific parameters during translation. Users can now retain placeholders like :name or :count within localization files or templating engines, preventing their translation. Usage can be found in preserving parameters section of documentation. - #199. Thanks @kylemilloy 🎉Add type to composer.json
Add type to composer.json
Nothing published for this version
As of v5.1.0 concrete exceptions are available in \Stichoza\GoogleTranslate\Exceptions namespace:
As of v5.1.0 concrete exceptions are available in \Stichoza\GoogleTranslate\Exceptions namespace:
LargeTextException If the requested text is too large to translate.RateLimitException If Google has blocked you for excessive amount requests.TranslationRequestException If any other HTTP related error occurs during translation.TranslationDecodingException If the response JSON cannot be decoded.All concrete exceptions are backwards compatible, so if you were using older versions, you won't have to update your code.
TranslationDecodingException extends UnexpectedValueException, while LargeTextException, RateLimitException and TranslationRequestException extend ErrorException that was used in older versions (<5.1.0) of this package.
Finally a good answer to #70
Nothing published for this version
Updated package to require PHP 8 as PHP 7.4 reached its end of life yesterday.
Updated package to require PHP 8 as PHP 7.4 reached its end of life yesterday.
setOptions() method accepts only arrays, parameter is not nullable anymore. Likelihood of impact in low.Nothing published for this version
Nothing published for this version
Nothing published for this version
Switched from webapp client to gtx for better quality of translation. #163, Thanks @henno
webapp client to gtx for better quality of translation. #163, Thanks @hennosetClient() method to switch between gtx and webapp clients (Default is gtx).Preserve HTTP error codes in ErrorException #160 #161
Preserve HTTP error codes in ErrorException #160 #161
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
This is a major update. Please read docs before updating from v3.2 to v4.0.
This is a major update. Please read docs before updating from v3.2 to v4.0.
TranslateClient to simply GoogleTranslate.trans() and non-static translate() methods.Fixes errors on old version. Please upgrade to new version of this package tho, 3.2 is not supported.
Fixes errors on old version. Please upgrade to new version of this package tho, 3.2 is not supported.
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Added multiple sentence translation using array (see updated docs).
>=5.5.0.~6.0.Nothing published for this version
Nothing published for this version
Language detection is not experimental feature now.
getLastDetectedSource() can be called both statically and non-statically.$options for advanced configuration of Guzzle HTTP client. (@vkollin)
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Implemented getLastDetectedSource()
getLastDetectedSource()Totally refacted the whole code.
Totally refacted the whole code.
Readme and docs soming soon
Nothing published for this version
This package has been added to Composer package manager :sunglasses: See the readme for installation instructions.
This package has been added to Composer package manager :sunglasses: See the readme for installation instructions.
One column per quarter.