定制 languara/fuelphp 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

languara/fuelphp

最新稳定版本:v1.1.2

Composer 安装命令:

composer require languara/fuelphp

包简介

Languara localization plugin for FuelPHP 1.x. Easily upload, translate, and synchronize your language content using Languara's Cloud Based Translation Management Platform.

README 文档

README

Install

Add languara plugin information to your composer.json file:


php composer.phar require languara/fuelphp

or


"require": {
  "languara/fuelphp": "1.0.*@dev"
}

Use composer to install this package.


$ composer update

Register the pakcage

Add the package to the autoload array in fuel/app/config/config.php:


'always_load'  => array(
    'packages'  => array(
      // .....
      'languara'
    )
)

Configure the Package

Optionally if you want to use the GUI pull and push from the GUI on http://languara.com add these 2 routes to your fuel/app/config/routes.php:

'languara/push' => function(){
	return (new \Languara\Wrapper\LanguaraWrapper())->push();
},
'languara/pull' => function(){
	return (new \Languara\Wrapper\LanguaraWrapper())->pull();
},

Usage

Execute this command to see a list of available commands in your commandline:


$ php oil r languara

Or you can check the commands and their usage here:


$ php oil r languara:translate [options]

to translate the texts you already have in your lang directory. You can also select the type of translation you want to perform, Machine or Human. It's set to machine by default.


$ php oil r languara:pull

to download your content from Languara to your app.


$ php oil r languara:push

to upload your content from your app to Languara.


$ php oil r languara:connect

to connect your plugin with a project on languara.com


$ php oil r languara:register

to register a new user on languara.com

统计信息

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

GitHub 信息

  • Stars: 2
  • Watchers: 3
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-03-06