PHPackages                             mkorkmaz/tk-api-php-sdk - 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. [API Development](/categories/api)
4. /
5. mkorkmaz/tk-api-php-sdk

Abandoned → [mkorkmaz/tk-api-php-client](/?search=mkorkmaz%2Ftk-api-php-client)Library[API Development](/categories/api)

mkorkmaz/tk-api-php-sdk
=======================

Turkish Airlines TK API Unofficial PHP Client

2.1(7y ago)817MITPHPPHP ^7.2

Since Oct 16Pushed 7y ago2 watchersCompare

[ Source](https://github.com/mkorkmaz/tk-api-php-client)[ Packagist](https://packagist.org/packages/mkorkmaz/tk-api-php-sdk)[ RSS](/packages/mkorkmaz-tk-api-php-sdk/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (10)Dependencies (10)Versions (20)Used By (0)

Turkish Airlines' TK API Unofficial PHP API
===========================================

[](#turkish-airlines-tk-api-unofficial-php-api)

[![Build Status](https://camo.githubusercontent.com/759bd86cf1342b40fbd42dd5f32ea132b619fa137024ef3563731991d9e5a980/68747470733a2f2f6170692e7472617669732d63692e6f72672f6d6b6f726b6d617a2f746b2d6170692d7068702d636c69656e742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/mkorkmaz/tk-api-php-client)[![Coverage Status](https://camo.githubusercontent.com/408066510b3e425823b9ef235038e40233c5d7cab2629e7184120af1ceb799c1/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6d6b6f726b6d617a2f746b2d6170692d7068702d636c69656e742f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/mkorkmaz/tk-api-php-client?branch=master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/33950acedabcdbf81e7ec9c8be2185266061ba9a6691aed0d00c188cb0cea578/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6d6b6f726b6d617a2f746b2d6170692d7068702d636c69656e742f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/mkorkmaz/tk-api-php-client/?branch=master)

See the official documentation at [Turkish Airlines Developer Portal](https://developer.turkishairlines.com/)

To use this library, one has to create a developer account on Developer Portal and create an application to get required API Key and API Secret.

### Installation

[](#installation)

```
composer require mkorkmaz/tk-api-php-client
```

### Configuration

[](#configuration)

Put your API Key and API Secret securely in a configuration file or .env etc. Since calling an API endpoint is rate-limited, it is important to secure these information.

Use  as your api test url during development.

### Creating API Client

[](#creating-api-client)

```
