elkuku/crowdin-api

This package is abandoned and no longer maintained. No replacement package was suggested.

A crowdin API implementation in PHP

Maintainers

👁 elkuku

Package info

github.com/elkuku/crowdin-api

pkg:composer/elkuku/crowdin-api

Statistics

Installs: 34 290

Dependents: 3

Suggesters: 0

Stars: 2

Open Issues: 2

2.0 2017-07-01 14:19 UTC

Requires

Requires (Dev)

Suggests

None

Provides

None

Conflicts

None

Replaces

None

WTFPL 0f8fcb9b24cb566b80ba8a443e7278d808fcf53b

  • Nikolai Plath <der.el.kuku.woop@gmail.com>

This package is not auto-updated.

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


README

👁 Build Status
👁 Scrutinizer Code Quality
👁 Code Coverage
Report 👁 SensioLabsInsight
👁 Latest Stable Version
👁 WTFPL

Inspired by https://github.com/akeneo/php-crowdin-api

Installation

composer require elkuku/crowdin-api

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.

... to make life easy in your IDE 😉

👁 Auto complete

👁 Documentation

Methods

API Documentation

Project

Directory

File

Translation

Language

Memory

Glossary

hF

=;)