CloudAPI.Stream
High-quality cloud service for text translation. 100+ Languages https://cloudapi.stream/
Class initialization
$CAS = new CAS;
Key installation
$CAS->set_key('******-*****-*****-*****');
Visit to website https://cloudapi.stream/dev/sign-in
Get a list of languages available for translation
$answer = $CAS->langs();
Answer
array(3) { ["result"]=> bool(true) ["langs"]=> array(110) { ["af"]=> string(9) "Afrikaans" ["am"]=> string(7) "Amharic" ["ar"]=> string(6) "Arabic" ["auto"]=> string(15) "Detect Language" ["az"]=> string(11) "Azerbaijani" ["be"]=>...
Text translation
$answer = $CAS->translate('en','fr','Hi bro!');
translate(FROM_LAGUAGE_CODE,TO_LAGUAGE_CODE,TEXT);
Answer
array(3) { ["result"]=> bool(true) ["text"]=> string(15) "Salut mon pote!" ["times"]=> array(1) { ["total_time"]=> float(2.0059208869934) } }