survos/lingua-bundle

interact with Survos Lingua Server (aka translation server). Does not translate directly

Fund package maintenance!
kbond

Installs: 6

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

Type:symfony-bundle

2.0.5 2025-09-10 15:07 UTC

This package is auto-updated.

Last update: 2025-09-10 15:08:17 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.