PHPackages                             textking/api - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. textking/api

ActiveLibrary[HTTP &amp; Networking](/categories/http)

textking/api
============

Library to access the TEXTKING REST API for human translation.

0.1(12y ago)191MITPHP

Since Dec 18Pushed 12y ago2 watchersCompare

[ Source](https://github.com/TextKing/textking-api-php)[ Packagist](https://packagist.org/packages/textking/api)[ Docs](https://www.textking.com/api)[ RSS](/packages/textking-api/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

TEXTKING API bindings for PHP
=============================

[](#textking-api-bindings-for-php)

This library provides an object oriented interface to the [TEXTKING translation API](https://github.com/TextKing/textking-api/wiki). The TEXTKING translation API is a RESTful web service which allows you to automate your translation processes using the high quality human translations offered by the TEXTKING translation agency.

Features
--------

[](#features)

- Get information about your prepared, running and completed translation projects.
- Create and commission new translation projects
- Upload documents for translation in various file formats
- Perform a cost analysis for uploaded documents
- Get informed about the state of a translation in progress
- Download the translated documents

Requirements
------------

[](#requirements)

- PHP &gt;= 5.3.3
- [Guzzle](http://docs.guzzlephp.org/en/latest/index.html)
- [Composer](http://getcomposer.org)

Installing via Composer
-----------------------

[](#installing-via-composer)

The recommended way to install the TEXTKING API is through [Composer](http://getcomposer.org).

```
# Install Composer
curl -sS https://getcomposer.org/installer | php

# Add TEXTKING API as a dependency
php composer.phar require textking/api:~0.1
```

This will install the TEXTKING API and its dependencies into your project.

After installing, you need to require Composer's autoloader:

```
require 'vendor/autoload.php';
```

Usage
-----

[](#usage)

The following example demonstrates how you can use the TEXTKING API to submit a text for translation.

```
