survos / lingua-bundle
interact with Survos Lingua Server (aka translation server). Does not translate directly
Fund package maintenance!
2.10.14
2026-06-09 21:16 UTC
Requires
- php: ^8.5
- survos/lingua-contracts: ^2.5
- survos/lingua-core: ^2.5
- symfony/config: ^8.1
- symfony/console: ^8.1
- symfony/dependency-injection: ^8.1
- symfony/framework-bundle: ^8.1
- symfony/http-client: ^8.1
- symfony/http-kernel: ^8.1
- symfony/routing: ^8.1
Requires (Dev)
- doctrine/orm: ^3.5
- symfony/phpunit-bridge: ^8.1
This package is auto-updated.
Last update: 2026-06-20 20:31:45 UTC
README
A Symfony bundle for lingua functionality.
Features
- Twig extension with custom filters and functions
- Main service class for business logic
- Controller with example routes
- Console command for CLI operations
- Configurable via environment variables
Installation
Install the bundle using Composer:
composer require survos/lingua-bundle
If you're using Symfony Flex, the bundle will be automatically registered. Otherwise, add it to your config/bundles.php:
return [ // ... Survos\LinguaBundle\SurvosLinguaBundle::class => ['all' => true], ];
Configuration
Configure the bundle in config/packages/lingua.yaml:
survos_lingua: api_key: '%env(SURVOS_LINGUA_API_KEY)%'
Or set environment variables:
SURVOS_LINGUA_API_KEY=your_value_here
Usage
This bundle provides various components depending on your configuration. Check the generated service classes and controllers for specific usage examples.
Testing
Run the test suite:
./vendor/bin/phpunit
License
This bundle is released under the MIT license. See the LICENSE file for details.