raffaalves/bing-translation 问题修复 & 功能扩展

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

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

raffaalves/bing-translation

Composer 安装命令:

composer require raffaalves/bing-translation

包简介

Port of the Bing Translate PHP wrapper for laravel 4.2

README 文档

README

######Copied from Laravel 4 Bing Translation Library, but with another autentication

Installation

Install this package through Composer. To your composer.json file, add:

"require-dev": {
    "raffaalves/bing-translation": "dev-master"
}

Next, run composer update to download it.

or

$ composer require raffaalves/bing-translation

Finally, add the service provider to app/config/app.php, within the providers array.

'providers' => array(
    // ...

    'Raffaalves\BingTranslation\BingTranslationServiceProvider'
)

Configuration

Run php artisan config:publish raffaalves/bing-translation to publish the package config file. Add your API key and your done.

Usage

This package is a laravel 4 port of the Microsoft Bing Translation PHP wrapper. Instructions can be found here: Microsoft Bing Translation PHP wrapper

Example

$text = 'Hello world!';
$translatedText = Bing::translate( $text, "en", "fr" );
dd($translatedText);

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-01-14

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固