Registry / http-client / stichoza-google-translate-php

stichoza-google-translate-php

JSON →
library5.3.1phppackagistunverified

Free Google Translate API PHP Package.

composer require stichoza/google-translate-php
INSTALL
IMPORT
SIG · STICHOZA-GOOGLE-TR
S
stichoza-google-translate-php
http-clientphpv5.3.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

GoogleTranslate
use Stichoza\GoogleTranslate\GoogleTranslate;

Translate text from English to Spanish.

<?php require_once 'vendor/autoload.php'; use Stichoza\GoogleTranslate\GoogleTranslate; $tr = new GoogleTranslate('en', 'es'); echo $tr->translate('Hello world'); // Outputs: Hola mundo
Debug
Known issues
gotchaGoogle Translate API may block requests if used excessively without proper rate limiting.
fix
Implement request throttling or use a paid API key.
affects: >=5.0.0
Upgrade
Version history
5.3.1latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
23 hits · last 30 days
node
22
Resources
stichoza-google-translate-php — pip install stichoza-google-translate-php · libregistry