PHP Classes

PHP Yandex Translate API Wrapper: Translate text between languages using Yandex API

Recommend this page to a friend!
  Info   View files Example   View files View files (12)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 133 All time: 9,305 This week: 524Up
Version License PHP version Categories
apiyandex 1.0.0GNU General Publi...5Localization, PHP 5, Web services
Description 

Author

This class can translate text between languages using Yandex API.

It can take a given text and send requests to the Yandex translate API to translate that text to a given language.

The class can also send an API request to detect the language of a text.

Picture of adriano ghezzi
  Performance   Level  
Name: adriano ghezzi <contact>
Classes: 2 packages by
Country: Italy Italy
Age: ???
All time rank: 4116167 in Italy Italy
Week rank: 275 Up14 in Italy Italy Up

Example

<?php
require_once "../apiYandex.php";
$dirs=null;
$langs=null;
$yandex=\yandex\apiYandex::Factory();
$yandex->getSupportedlanguages($dirs,$langs);
require_once
"trans.html";
?>


  Files folder image Files  
File Role Description
Plain text file apiYandex.php Class base class
Accessible without login Plain text file detect.html Data detect lang
Accessible without login Plain text file detected.html Data detect language
Accessible without login Plain text file detected.php Example detect language
Accessible without login Plain text file home.html Data home example
Accessible without login Plain text file index.php Aux. index
Accessible without login Plain text file languages.php Example available languages
Accessible without login Plain text file languagesList.html Data available languages
Accessible without login Plain text file trans.html Data translate example
Accessible without login Plain text file trans.php Example translate example
Accessible without login Plain text file translated.html Data translate example
Accessible without login Plain text file translated.php Example translate example

 Version Control Unique User Downloads Download Rankings  
 0%
Total:133
This week:0
All time:9,305
This week:524Up