All Projects → dejurin → php-google-translate-for-free

dejurin / php-google-translate-for-free

Licence: MIT license
Library for free use Google Translator. With attempts connecting on failure and array support.

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to php-google-translate-for-free

translate
A module grouping multiple translation APIs
Stars: ✭ 321 (+158.87%)
Mutual labels:  translator, translate, google-translate
node-google-translate-skidz
Simple Node.js library for talking to Google's Translate API for free.
Stars: ✭ 70 (-43.55%)
Mutual labels:  translator, translate, google-translate
HighlightTranslator
Highlight Translator can help you to translate the words quickly and accurately. By only highlighting, copying, or screenshoting the content you want to translate anywhere on your computer (ex. PDF, PPT, WORD etc.), the translated results will then be automatically displayed before you.
Stars: ✭ 54 (-56.45%)
Mutual labels:  translator, translate, google-translate
googletrans
G文⚡️: Concurrency-safe, Free and Unlimited google translate api for Golang. 🔥免费、无限、并发安全的谷歌翻译包
Stars: ✭ 94 (-24.19%)
Mutual labels:  translator, google-translate, detect-language
tr4n5l4te
Use Google Translate without an API key.
Stars: ✭ 32 (-74.19%)
Mutual labels:  translator, translate, google-translate
LibreTranslate
Free and Open Source Machine Translation API. Self-hosted, offline capable and easy to setup.
Stars: ✭ 3,932 (+3070.97%)
Mutual labels:  translator, translate
translation-google
A Google Translate component for Nodejs.
Stars: ✭ 42 (-66.13%)
Mutual labels:  translate, google-translate
deepl-php-lib
🧠 DeepL API Client Library supporting PHP >= 7.3
Stars: ✭ 50 (-59.68%)
Mutual labels:  translator, translate
Google Translate Php
🌐 Free Google Translate API PHP Package. Translates totally free of charge.
Stars: ✭ 1,131 (+812.1%)
Mutual labels:  language-detection, translate
DocumentTranslation
Command Line tool and Windows application for document translation, a local interface to the Azure Document Translation service for Windows, macOS and Linux.
Stars: ✭ 61 (-50.81%)
Mutual labels:  translator, translate
SimpleTranslationSystem
A simple C# translation system
Stars: ✭ 14 (-88.71%)
Mutual labels:  translator, translate
gpytranslate
A Python3 library for translating text using Google Translate API.
Stars: ✭ 34 (-72.58%)
Mutual labels:  translator, translate
MouseTooltipTranslator
chrome extension - When mouse hover on text, it shows translated tooltip using google translate
Stars: ✭ 93 (-25%)
Mutual labels:  translator, google-translate
Translator3000
Automatic translator of games made on Ren'Py engine.
Stars: ✭ 78 (-37.1%)
Mutual labels:  translator, translate
linguist
Linguist is a powerful browser extension for translate pages and text, which are ready to replace your favorite translate service
Stars: ✭ 21 (-83.06%)
Mutual labels:  translator, translate
react-translator-component
React language translation module for developing a multilingual project.
Stars: ✭ 13 (-89.52%)
Mutual labels:  translator, translate
detectlanguage-java
Detect Language API Java Client
Stars: ✭ 23 (-81.45%)
Mutual labels:  language-detection, detect-language
Command-line-translator
Command-line access to google translate and some other features
Stars: ✭ 26 (-79.03%)
Mutual labels:  language-detection, google-translate
Misakatranslator
御坂翻译器—Galgame/文字游戏/漫画多语种实时机翻工具
Stars: ✭ 2,211 (+1683.06%)
Mutual labels:  translator, translate
bing-translate-api
A simple and free API for Bing Translator for Node.js
Stars: ✭ 37 (-70.16%)
Mutual labels:  translator, translate

GoogleTranslateForFree

Packagist: https://packagist.org/packages/dejurin/php-google-translate-for-free

version downloads travis StyleCI

Library for free use Google Translator. With attempts connecting on failure and array support.

Installation

Install this package via Composer.

composer require dejurin/php-google-translate-for-free

Or edit your project's composer.json to require dejurin/php-google-translate-for-free and then run composer update.

"require": {
    "dejurin/php-google-translate-for-free": "^1.0"
}

Usage

require_once ('vendor/autoload.php');
use \Dejurin\GoogleTranslateForFree;

Single

$source = 'en';
$target = 'ru';
$attempts = 5;
$text = 'Hello';

$tr = new GoogleTranslateForFree();
$result = $tr->translate($source, $target, $text, $attempts);

var_dump($result); 

/* 
	string(24) "Здравствуйте" 
*/

Array

$source = 'en';
$target = 'ru';
$attempts = 5;
$arr = ['hello','world'];

$tr = new GoogleTranslateForFree();
$result = $tr->translate($source, $target, $arr, $attempts);

var_dump($result); 

/*
	array(2) {
	  [0]=>
	  string(24) "Здравствуйте"
	  [1]=>
	  string(6) "Мир"
	}

*/

License

This source code is distributed under MIT license.


Sponsors

https://currencyrate.today

https://moneyconvert.net/

https://co-w.io/

https://co-in.io/

https://fx-w.io/

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].