Translate
Requirement
PHP >= 5.5
Installation
$ composer require "mouyong/translate" -vvv
Usage
<?php
use Yan\Translate\TranslateManager;
$config = [
'default' => 'google',
'drivers' => [
// 留空
'google' => [
'app_id' => '',
'app_key' => '',
],
'baidu' => [
'ssl' => true,
'app_id' => 'your-baidu-app_id'
2021-11-14 10:23:34
16KB
PHP
1