承接 bedita/i18n-google 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

bedita/i18n-google

最新稳定版本:v2.0.0

Composer 安装命令:

composer require bedita/i18n-google

包简介

BEdita I18n Google plugin supporting PHP >= 8.3

README 文档

README

Github Actions codecov phpstan psalm Scrutinizer Code Quality image image

Installation

You can install this plugin into your application using composer.

The recommended way to install composer packages is:

composer require bedita/i18n-google

Note: php version supported is >= 8.3.

Google Cloud Translation

This plugin uses Google Cloud Translation for PHP to translate texts, via google-cloud-php-translate.

Usage example:

use BEdita\I18n\Google\Core\Translator;

$translator = new Translator();
$translator->setup(['auth_key' => 'your-auth-key']);
$result = $translator->translate(['Hello world!'], 'en', 'it');
// $result is an array, i.e ['translation' => ['Ciao mondo!']]

统计信息

  • 总下载量: 21
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 2
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-11-06