PHPackages                             translationexchange/tml - 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. [Localization &amp; i18n](/categories/localization)
4. /
5. translationexchange/tml

ActiveLibrary[Localization &amp; i18n](/categories/localization)

translationexchange/tml
=======================

Translation Markup Language for PHP

3.2.18(8y ago)023.2k↓32.6%1MITPHPPHP &gt;=5.3.0

Since Jan 29Pushed 8y ago8 watchersCompare

[ Source](https://github.com/translationexchange/tml-php)[ Packagist](https://packagist.org/packages/translationexchange/tml)[ Docs](https://translationexchange.com)[ RSS](/packages/translationexchange-tml/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (33)Used By (0)

 [![](https://avatars0.githubusercontent.com/u/1316274?v=3&s=200)](https://avatars0.githubusercontent.com/u/1316274?v=3&s=200)

Tml for PHP
===========

[](#tml-for-php)

[![Latest Stable Version](https://camo.githubusercontent.com/f152391658e15c4c5f0e1f5d85291442db620625e9c119017bb416d091f371a2/68747470733a2f2f706f7365722e707567782e6f72672f7472616e736c6174696f6e65786368616e67652f746d6c2f762f737461626c65)](https://packagist.org/packages/translationexchange/tml)[![Build Status](https://camo.githubusercontent.com/ced7f0657afe347bd7508cd7896bc21a0c2adc7735e42f15f7e5aa761ca0b6d3/68747470733a2f2f7472617669732d63692e6f72672f7472616e736c6174696f6e65786368616e67652f746d6c2d7068702e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/translationexchange/tml-php)[![Coverage Status](https://camo.githubusercontent.com/b307ddac6a0a82041d496642c0ffd1c0253cd1c10b1894a18a8bef53a42f1ee3/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f7472616e736c6174696f6e65786368616e67652f746d6c2d7068702f62616467652e737667)](https://coveralls.io/r/translationexchange/tml-php)[![Latest Unstable Version](https://camo.githubusercontent.com/4860dc769d324eeba95a2c08bc06bcd26b8fe2f1b643763c2dda0d3f9990e577/68747470733a2f2f706f7365722e707567782e6f72672f7472616e736c6174696f6e65786368616e67652f746d6c2f762f756e737461626c65)](https://packagist.org/packages/translationexchange/tml)[![Dependency Status](https://camo.githubusercontent.com/0cd6c32ae694faa1067741d3af79a773896cae01b85a79cb91d8a128d313a5d2/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f757365722f70726f6a656374732f3534633963323937646537393234663831613030303030632f62616467652e7376673f7374796c653d666c6174)](https://www.versioneye.com/user/projects/54c9c297de7924f81a00000c)[![Total Downloads](https://camo.githubusercontent.com/de26b581ab29bbebd801a3c396c8ff99de1c566c07612312b6426ae0de3452a9/68747470733a2f2f706f7365722e707567782e6f72672f7472616e736c6174696f6e65786368616e67652f746d6c2f646f776e6c6f616473)](https://packagist.org/packages/translationexchange/tml)[![Monthly Downloads](https://camo.githubusercontent.com/05f8b21984ff46eb10234645fad66fac77b456db7af52ef31ac242c3dd9a625a/68747470733a2f2f706f7365722e707567782e6f72672f7472616e736c6174696f6e65786368616e67652f746d6c2f642f6d6f6e74686c79)](https://packagist.org/packages/translationexchange/tml)[![License](https://camo.githubusercontent.com/9b7bcb8364f5ceb53bb82c91ef3dd03917a1d5783f1a3eb7e41b1336e8de34c2/68747470733a2f2f706f7365722e707567782e6f72672f7472616e736c6174696f6e65786368616e67652f746d6c2f6c6963656e7365)](https://packagist.org/packages/translationexchange/tml)[![Open Source Helpers](https://camo.githubusercontent.com/68e20cbba92c34e91c7b5a0707f4da2d203ba780c8926c6c723b133f38ae9a12/68747470733a2f2f7777772e636f64657472696167652e636f6d2f7472616e736c6174696f6e65786368616e67652f746d6c2d7068702f6261646765732f75736572732e737667)](https://www.codetriage.com/translationexchange/tml-php)

Installation
============

[](#installation)

Tml for PHP can be installed using the composer dependency manager. If you don't already have composer installed on your system, you can get it using the following command:

```
$ cd YOUR_APPLICATION_FOLDER
$ curl -s http://getcomposer.org/installer | php
```

Create composer.json in the root folder of your application, and add the following content:

```
{
    "require": {
        "translationexchange/tml": "3.2.18"
    }
}
```

This tells composer that your application requires tml library to be installed.

Now install Tml library by executing the following command:

```
$ composer install
```

Composer will automatically create a vendor folder and put the SDK into vendor/translationexchange/tml directory.

Now you are ready to integrate TML into your application.

Integration
===========

[](#integration)

Before you can proceed with the integration, please visit  to register your application.

Once you have created a new application, you will be given an application key and a secret. You will need to enter them in the initialization function of the TML SDK.

To make sure you have installed everything correctly, create a sample test file in the root folder of your app and call it index.php

Paste the following content into the file:

```
