yaraku/translate-api 问题修复 & 功能扩展

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

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

yaraku/translate-api

最新稳定版本:v1.0.0

Composer 安装命令:

composer require yaraku/translate-api

包简介

Thin client library for sending translate requests with Yaraku Translate Translate API v2.

README 文档

README

A MIT licensed PHP thin client library for the Yaraku Translate's Translate API v2

Install with composer

composer require yaraku/translate-api

Set up

<?php

use YarakuTranslate\TranslateApiV2\Client

/*
 * Create a new client, which can be used in multiple requests.
 * 
 * The Authorization key can be found in:
 * Yaraku Translate -> Settings -> API -> TranslateAPI V2.
 * 
 * The url will be the API endpoint you are using, for example:
 * https://translate.yaraku.com/api/translate/v2
 */
 
$client = new Client($authkey, $url);

POST Request

/*
 * Call translate with an array of texts you want to translate.
 * Set the text (source) and translation (target) languages.
 */
$result = $client->translate(
    ['This is a test.', 'Add your texts here.'],
    'en',
    'ja'
);

统计信息

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

GitHub 信息

  • Stars: 6
  • Watchers: 7
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-07-22

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固