survos / lingua-bundle
interact with Survos Lingua Server (aka translation server). Does not translate directly
                                    Fund package maintenance!
                                                                            
                                                                                                                                        kbond
                                                                                    
                                                                
Installs: 28
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Type:symfony-bundle
pkg:composer/survos/lingua-bundle
Requires
- php: ^8.4
 - symfony/config: ^7.3||^8.0
 - symfony/console: ^7.3||^8.0
 - symfony/dependency-injection: ^7.3||^8.0
 - symfony/framework-bundle: ^7.3||^8.0
 - symfony/http-client: ^7.3||^8.0
 - symfony/http-kernel: ^7.3||^8.0
 - symfony/routing: ^7.3
 
Requires (Dev)
- symfony/phpunit-bridge: ^7.3||^8.0
 
This package is auto-updated.
Last update: 2025-11-03 18:16:07 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.