aurawindsurfing/google-translate
Laravel integration for Google Translate. Translate text between languages from your PHP app with a simple, configurable wrapper, service provider and facade support, and an easy setup for localizing content and dynamic strings.
Architecture fit
translation.googleapis.com/language/translate/v2, authenticated with a project API key. It adds no domain logic — it is a convenience binding, not a translation platform.TranslationProvider contract.Integration feasibility
composer require, publish config for the API key (env var), auto-discovery, call the facade. Realistically an afternoon to first successful call.illuminate/support and guzzlehttp/guzzle constraints against the current Laravel version; on Laravel 10/11 expect a fork, a composer.json widening PR, or abandonment of the package.Technical risk
Key questions
Stack fit
google/cloud-translate PHP client (service-account auth, v3 features) and absorb the extra setup cost.Migration path
Translator::translate(string|array $text, string $target, ?string $source) — with this package as the first implementation.acme/google-translate) so we control Laravel/Guzzle constraints, add tests, and patch independently. Do not depend on the upstream tag in production.hash(source, text, target) before go-live. This is the single highest-leverage change for both cost and latency.Compatibility
Guzzle 7 constraint and whether the provider is auto-discovered or requires manual registration.pt-BR, zh-CN, etc.) against our app's locale taxonomy — a classic silent-defect area.Sequencing
Maintenance
Support
Scaling
Failure modes
Ramp-up
How can I help you explore Laravel packages today?