2017 © Pedro Peláez
 

library translate-api

Client for Yandex.Translate API

image

yandex/translate-api

Client for Yandex.Translate API

  • Monday, August 24, 2015
  • by nkt
  • Repository
  • 18 Watchers
  • 110 Stars
  • 29,084 Installations
  • PHP
  • 11 Dependents
  • 1 Suggesters
  • 26 Forks
  • 5 Open issues
  • 4 Versions
  • 18 % Grown

The README.md

Yandex.Translate API

Latest Stable Version Total Downloads Latest Unstable Version License, (*1)

Api reference, (*2)

Versioning

Package version corresponds to the version of the API., (*3)

Installation

Add into your composer.json:, (*4)

{
  "require": {
    "yandex/translate-api": "1.5.x"
  }
}

Usage

Get your own api key, (*5)

use Yandex\Translate\Translator;
use Yandex\Translate\Exception;

try {
  $translator = new Translator($key);
  $translation = $translator->translate('Hello world', 'en-ru');

  echo $translation; // Привет мир

  echo $translation->getSource(); // Hello world;

  echo $translation->getSourceLanguage(); // en
  echo $translation->getResultLanguage(); // ru
} catch (Exception $e) {
  // handle exception
}

License

MIT, (*6)

The Versions

24/08 2015

dev-master

9999999-dev

Client for Yandex.Translate API

  Sources   Download

MIT

The Requires

  • ext-curl *
  • php >=5.3

 

by Nikita Gusakov

27/07 2015

1.5.2

1.5.2.0

Client for Yandex.Translate API

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-curl *

 

by Nikita Gusakov

19/02 2015

1.5.1

1.5.1.0

Client for Yandex.Translate API

  Sources   Download

MIT

The Requires

  • php ~5.3
  • ext-curl *

 

by Nikita Gusakov

04/08 2014

1.5

1.5.0.0

Client for Yandex.Translate API

  Sources   Download

MIT

The Requires

  • php ~5.3
  • ext-curl *

 

by Nikita Gusakov