bedita/i18n-microsoft 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

bedita/i18n-microsoft

最新稳定版本:v2.0.0

Composer 安装命令:

composer require bedita/i18n-microsoft

包简介

BEdita I18n Microsoft plugin supporting PHP >= 8.3

README 文档

README

Github Actions codecov phpstan 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-microsoft

Note: php version supported is >= 8.3.

Microsoft Translator TEXT API

This plugin uses Microsoft Translator TEXT API to translate texts.

Usage example:

use BEdita\I18n\Microsoft\Core\Translator;

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

统计信息

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

GitHub 信息

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

其他信息

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