承接 ayvazyan10/laravelgoogletranslator 相关项目开发

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

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

ayvazyan10/laravelgoogletranslator

最新稳定版本:v1.4

Composer 安装命令:

composer require ayvazyan10/laravelgoogletranslator

包简介

Translating texts with google translation service for free but with limits (use proxy)

README 文档

README

Translating texts with google translation service for free but with ip limits (use proxy) Take a look at contributing.md to see a to do list.

Installation

Via Composer

composer require ayvazyan10/laravelgoogletranslator

Usage

Publish provider for config file

php artisan vendor:publish --provider="Ayvazyan10\LaravelGoogleTranslator\LaravelGoogleTranslatorServiceProvider"

2 ways calling

use Ayvazyan10\LaravelGoogleTranslator\LaravelGoogleTranslator;

$trans = new LaravelGoogleTranslator();

$trans->trans('ru', 'en', 'Собака'); // result "Dog"

or with global function

google()->trans('es', 'en', 'buenos días'); // result "good morning"

if you want use proxy see config/laravelgoogletranslator.php config file

<?php

return [
    'proxy' => null, // example: ip:port
];

Change log

Please see the changelog for more information on what has changed recently.

Testing

composer test

Contributing

Please see contributing.md for details and a todolist.

Security

If you discover any security related issues, please email ayvazyan403@gmail.com instead of using the issue tracker.

Credits

License

MIT. Please see the license file for more information.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-08-24