2017 © Pedro Peláez
 

library crowdin-api

A crowdin API implementation in PHP

image

elkuku/crowdin-api

A crowdin API implementation in PHP

  • Monday, July 3, 2017
  • by elkuku
  • Repository
  • 1 Watchers
  • 1 Stars
  • 3,413 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 16 Versions
  • 9 % Grown

The README.md

Crowdin API implementation in PHP

Build Status Scrutinizer Code Quality Code Coverage Report SensioLabsInsight Latest Stable Version WTFPL, (*1)

Inspired by https://github.com/akeneo/php-crowdin-api, (*2)

Installation

composer require elkuku/crowdin-api, (*3)

Usage

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');

Note: There is fluent auto complete and lots of doc blocks, taken from the official API documentation., (*4)

... to make life easy in your IDE :wink:, (*5)

Auto complete, (*6)

Documentation, (*7)

Methods

API Documentation, (*8)

Project

  • create() https://crowdin.com/page/api/create-project
  • edit() https://crowdin.com/page/api/edit-project
  • delete() https://crowdin.com/page/api/delete-project
  • getInfo() https://crowdin.com/page/api/info
  • getList() https://crowdin.com/page/api/get-projects

Directory

  • add() https://crowdin.com/page/api/add-directory
  • update() https://crowdin.com/page/api/change-directory
  • delete() https://crowdin.com/page/api/delete-directory

File

  • add() https://crowdin.com/page/api/add-file
  • update() https://crowdin.com/page/api/update-file
  • delete() https://crowdin.com/page/api/delete-file
  • export() https://crowdin.com/page/api/export-file

Translation

  • upload() https://crowdin.com/page/api/upload-translation
  • export() https://crowdin.com/page/api/export
  • download() https://crowdin.com/page/api/download
  • getStatus() https://crowdin.com/page/api/status

Language

  • getSupported() https://crowdin.com/page/api/supported-languages
  • getStatus() https://crowdin.com/page/api/language-status

Memory

  • download() https://crowdin.com/page/api/download-tm
  • upload() https://crowdin.com/page/api/upload-tm

Glossary

  • download() https://crowdin.com/page/api/download-glossary
  • upload() https://crowdin.com/page/api/upload-glossary

hF

=;), (*9)

The Versions

03/07 2017

dev-master

9999999-dev

A crowdin API implementation in PHP

  Sources   Download

WTFPL

The Requires

 

The Development Requires

01/07 2017

2.0

2.0.0.0

A crowdin API implementation in PHP

  Sources   Download

WTFPL

The Requires

 

The Development Requires

01/07 2017

v1.x-dev

1.9999999.9999999.9999999-dev

A crowdin API implementation in PHP

  Sources   Download

WTFPL

The Requires

 

The Development Requires

01/07 2017

v1.2

1.2.0.0

A crowdin API implementation in PHP

  Sources   Download

WTFPL

The Requires

 

The Development Requires

02/08 2016

dev-php7

dev-php7

A crowdin API implementation in PHP

  Sources   Download

WTFPL

The Requires

 

The Development Requires

02/08 2016
17/06 2016
11/06 2016

1.0.8

1.0.8.0

A crowdin API implementation in PHP

  Sources   Download

GNU GPL

The Requires

 

The Development Requires

11/06 2016

1.0.7

1.0.7.0

A crowdin API implementation in PHP

  Sources   Download

GNU GPL

The Requires

 

The Development Requires

09/06 2016

1.0.6

1.0.6.0

A crowdin API implementation in PHP

  Sources   Download

GNU GPL

The Requires

 

The Development Requires

08/06 2016

1.0.5

1.0.5.0

A crowdin API implementation in PHP

  Sources   Download

GNU GPL

The Requires

 

The Development Requires

08/06 2016

1.0.4

1.0.4.0

A crowdin API implementation in PHP

  Sources   Download

GNU GPL

The Requires

 

The Development Requires

07/06 2016

1.0.3

1.0.3.0

A crowdin API implementation in PHP

  Sources   Download

GNU GPL

The Requires

 

The Development Requires

07/06 2016

1.0.2

1.0.2.0

A crowdin API implementation in PHP

  Sources   Download

GNU GPL

The Requires

 

07/06 2016

1.0.1

1.0.1.0

A crowdin API implementation in PHP

  Sources   Download

GNU GPL

The Requires

 

07/06 2016

1.0

1.0.0.0

A crowdin API implementation in PHP

  Sources   Download

GNU GPL

The Requires