statickidz/php-google-translate-free
最新稳定版本:1.2.2
Composer 安装命令:
composer require statickidz/php-google-translate-free
包简介
Google Translate Free library for PHP
README 文档
README
Simple PHP library for talking to Google's Translate API for free.
Eliminates IP request limitations
Installation
Install this package via Composer.
composer require statickidz/php-google-translate-free
Or edit your project's composer.json to require statickidz/php-google-translate-free and then run composer update.
"require": { "statickidz/php-google-translate-free": "^1.2.1" }
Usage
require_once ('vendor/autoload.php'); use \Statickidz\GoogleTranslate; $source = 'es'; $target = 'en'; $text = 'buenos días'; $trans = new GoogleTranslate(); $result = $trans->translate($source, $target, $text); // Good morning echo $result;
统计信息
- 总下载量: 245.24k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 289
- 点击次数: 1
- 依赖项目数: 5
- 推荐数: 1
其他信息
- 授权协议: GPL-3.0-only
- 更新时间: 2017-02-07