elkuku / crowdin-api

此包已 废弃 且不再维护。未建议替代包。

PHP 实现的 crowdin API

2.0 2017-07-01 14:19 UTC

This package is not auto-updated.

Last update: 2021-02-03 08:48:55 UTC


README

Build Status Scrutinizer Code Quality Code Coverage 报告 SensioLabsInsight Latest Stable Version WTFPL

https://github.com/akeneo/php-crowdin-api 启发

安装

composer require elkuku/crowdin-api

使用

use ElKuKu\Crowdin\Crowdin;
use ElKuKu\Crowdin\Languagefile;

$crowdin = new Crowdin('{project-id}', '{api-key}');

// Add new translation file
$crowdin->file->add(new Languagefile('{local path}', '{crowdin path}'));

// Export a translated file
$crowdin->file->export('{crowdin path}', '{language}', '{local path}');

// Delete a translation file
$crowdin->file->delete('{crowdin path}');

// Export (build) translation files on Crowdin
$crowdin->translation->export();

// Download a zip file containing all language files
$crowdin->translation->download('all.zip', '/local/path/to/package.zip');

注意: 提供流畅的自动完成和大量的文档块,来自官方 API 文档。

... 使您在 IDE 中更容易使用 😉

Auto complete

Documentation

方法

API 文档

项目

目录

文件

翻译

语言

内存

术语表

hF

=;)