PHP Classes

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

Recommend this page to a friend!
     
  Info   Example   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 134 All time: 9,301 This week: 74Up
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

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 (12)  
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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:134
This week:0
All time:9,301
This week:74Up