Yandex Translate API
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
LICENSE Initial commit May 15, 2015
README.md Update README.md May 15, 2015
class.curl.php Create class.curl.php May 15, 2015
class.yandexTranslate.php Update class.yandexTranslate.php May 15, 2015

README.md

Yandex Translate API

###Simple Usage

<?php
/*
*	Yandex Translate API Class
*	@author Burtay
*	Website : http://www.burtay.org
*	Mail : admin{at}burtay.org 
*	Twitter : @HaciBurtay
*	Github : @Burtay
*/
require("class.yandexTranslate.php");
/* Instance */
$yt = new YandexTranslate();

/* Set Api Key */
$yt->setApiKey('YOUR_API_KEY');

/*Optinal*/
$yt->dedectSource("Your String");

/* If you dont use  above optinal method this method is necessary */
$yt->setTranslateLangs("en-tr");	

/* Translate it */
$yt->translate(array("Your String Part 1","Your String Part 2"));
?>