2017 © Pedro Peláez
 

library yandextranslator

is based on the Yandex interpreter. Uses the guzzlle library

image

yandextranslator/yandextranslator

is based on the Yandex interpreter. Uses the guzzlle library

  • Friday, December 22, 2017
  • by dastanaron
  • Repository
  • 0 Watchers
  • 0 Stars
  • 2 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

YandexTranslator

is based on the Yandex interpreter. Uses the guzzlle library, (*1)

Installation

The preferred way to install this extension is through composer., (*2)

Either run, (*3)

php composer.phar require --prefer-dist yandextranslator/yandextranslator "*"

or add, (*4)

"yandextranslator/yandextranslator": "*"

to the require section of your composer.json file., (*5)

Usage

Once the extension is installed, simply use it in your code by :, (*6)

<?php
use dastanaron\extension\yandextranslator\Translator;
$api_key  = 'you yandex api key';
$text = "Привет мир";
$translator = new Translator($api_key, $text);

$translate = $translator->translate();


echo $translate->getJson();
var_dump($translate->getArray());
echo $translate->etTranslateText();
echo $translate->getTranslatedToUrl();

The Versions

22/12 2017

dev-master

9999999-dev

is based on the Yandex interpreter. Uses the guzzlle library

  Sources   Download

GPL-3.0+

The Requires

 

by Avatar dastanaron

extension translator yandex

22/12 2017

1.0.0

1.0.0.0

is based on the Yandex interpreter. Uses the guzzlle library

  Sources   Download

GPL-3.0+

The Requires

 

by Avatar dastanaron

extension translator yandex