symfony/translation-contracts
Symfony Translation Contracts provides lightweight interfaces and abstractions for translation in PHP, extracted from Symfony components. Use it to build interoperable, battle‑tested translation integrations while staying framework-agnostic and compatible with Symfony implementations.
The symfony/translation-contracts package provides pure interface definitions for translation abstractions, not implementation logic. In a Laravel context, this aligns perfectly with Laravel's existing translation architecture, which already depends on Symfony's Translation component (and thus this package transitively). The package enables pluggable translation adapters, allowing custom integrations (e.g., third-party translation services like AWS Translate or Google Cloud Translation) to conform to Laravel's native translation system. Integration feasibility is high since Laravel's service container can bind custom implementations of these interfaces without architectural changes. Technical risk is minimal due to the absence of runtime code—risks would stem solely from custom implementation errors, not the contracts themselves. Key questions include:
How can I help you explore Laravel packages today?