定制 statickidz/php-google-translate-free 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

GitHub 信息

  • Stars: 285
  • Watchers: 25
  • Forks: 91
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-3.0-only
  • 更新时间: 2017-02-07