2017 © Pedro Peláez
 

library translator-bundle

A symfony2 bundle that uses 3rd party translation apis to translate text

image

avro/translator-bundle

A symfony2 bundle that uses 3rd party translation apis to translate text

  • Thursday, August 7, 2014
  • by jdewit
  • Repository
  • 1 Watchers
  • 0 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Avro Translator Bundle

A Symfony2 bundle that utilizes Microsoft Translator to translate text. Unlike Google translate, Microsoft translate has a free plan that allows for 2 000 000 characters to be translated per month., (*1)

See Microsoft Translator Docs on how to setup your azure account to get your clientID and client secret., (*2)

Install

$ composer install avro/translator-bundle

Add bundle to AppKernel., (*3)

    new Avro\TranslatorBundle\AvroTranslatorBundle(),

Config

avro_translator:
    azure:
        client_id: %azure_client_id%
        client_secret: %azure_client_secret%

Usage

Translator is available as a service, (*4)

// translate some text from english to spanish
$newText = $this->container->get('avro_translator.translator')->translate('Some text here', 'en', 'es');

License

MIT, (*5)

The Versions

07/08 2014

dev-master

9999999-dev

A symfony2 bundle that uses 3rd party translation apis to translate text

  Sources   Download

MIT

by Joris de Wit