PHPackages                             anilken/turkpin-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. [API Development](/categories/api)
4. /
5. anilken/turkpin-api

AbandonedArchivedLibrary[API Development](/categories/api)

anilken/turkpin-api
===================

Turkpin API Package

v1.0.6(3y ago)42.0kMITPHPPHP &gt;=7.3.0

Since May 11Pushed 3y ago1 watchersCompare

[ Source](https://github.com/anilken/turkpin-api)[ Packagist](https://packagist.org/packages/anilken/turkpin-api)[ Docs](https://github.com/anilken/turkpin-api)[ GitHub Sponsors](https://github.com/anilken)[ RSS](/packages/anilken-turkpin-api/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (7)Dependencies (3)Versions (8)Used By (0)

Turkpin API Package
===================

[](#turkpin-api-package)

[![Latest Version on Packagist](https://camo.githubusercontent.com/6f8f57b7418fb0a9ceb855b100fca75ff0140c5b877ec07c76868f4db8e853cc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f616e696c6b656e2f7475726b70696e2d6170692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/anilken/turkpin-api)[![Total Downloads](https://camo.githubusercontent.com/8350ebe769821ac6263d1b6ef4af9a76910ce30b11b820f21152fe8dd9274e6d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f616e696c6b656e2f7475726b70696e2d6170692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/anilken/turkpin-api)

**Turkpin API** With this package, you can create an epin order and deliver it to your customers. **[Official Documentation](https://dev.turkpin.com/view/3051588/TVza8YYA#038621b3-851b-4ac9-82ef-a2ad22f7cd20)**

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require anilken/turkpin-api
```

Usage
-----

[](#usage)

```
use Anilken\Turkpin\Turkpin;

$api = new Turkpin('username', 'password');

$api->epinList();

// Example Output

[
  {
    "id": "5",
    "name": "Echo of Soul (EOS)"
  },
  {
    "id": "633",
    "name": "Google Play kodu"
  }
  ...
]

$api->epinProducts($epin_id);

// Example Output

[
  {
    "name": "Google Play kodu 25 TL",
    "id": "8209",
    "stock": "377",
    "min_order": "1",
    "max_order": "0",
    "price": "24.5000",
    "tax_type": []
  },
  ...
]

$api->epinOrder($epin_id, $product_id, $qty = 1, $character = '');

// Example Output

{
  "status": "Success",
  "order_no": "21061113513501",
  "total_amount": "1",
  "list": [
    {
      "code": "8PFG-XXXX-FL3C-XXXX",
      "desc": "Test Ürün"
    }
  ]
}

$api->checkStatus($order_no);

// Example Output

{
  "status_code": "000",
  "order_no": "21061113513501",
  "order_code": "2",
  "order_status_description": "Siparişiniz Tamamlandı",
  "check_date": "11-06-2021 13:51:53",
  "extra": "İPTAL SEBEBI",
}

$api->checkBalance();

// Example Output

{
  "balance": "996501.2300",
  "credit": "0.0000",
  "bonus": "0.000",
  "spending": "3498.7700"
}
```

Exception Codes
---------------

[](#exception-codes)

CodeMessage0Empty api result try again1User not found, check your username and password.2There is no access from your IP address. Please check your IP Address.3Invalid command, check cmd parameter.4Message field is a mandatory field.5An error occurred while processing.6This Account is not authorized to use Turkpin API7This Account is not available for Turkpin API.8Game ID is missing9The server list for the game could not be found10Missing or incorrect order format.11The product was not found.12The product is out of stock.13The number of orders must be min% s.14Dealer Balance Insufficient.15Payment type is invalid16Missing or incorrect notification format. Please check fields17You have entered a missing or incorrect notification number. Please check the notification\_id value18Number of orders must be max% s.19System error, error code:% s20Please enter correct operator and phone number for GSM TL top up21The amount to be reported for payment must be greater than 022This product is not purchased by us.23The site is currently closed for an update or maintenance.99Order Not Found. Check Order Number111XML Format Error. Please check the XML format you sent.---Custom error codes added to this package101Failed to get game list102Failed to get products list103Failed to get balanceChangelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](https://github.com/spatie/.github/blob/main/CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [ANILKEN](https://github.com/anilken)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 68% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~19 days

Recently: every ~26 days

Total

7

Last Release

1355d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a292e509d8d352480a11a2ac28fcac9bcda8d8b3a3a47527d5f7de19d0453a7e?d=identicon)[ANILKEN](/maintainers/ANILKEN)

---

Top Contributors

[![anilken](https://avatars.githubusercontent.com/u/5189878?v=4)](https://github.com/anilken "anilken (17 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (4 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (4 commits)")

---

Tags

epinphpturkpinphpanilkenturkpin-apiturkpin.comturkpin

###  Code Quality

TestsPest

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/anilken-turkpin-api/health.svg)

```
[![Health](https://phpackages.com/badges/anilken-turkpin-api/health.svg)](https://phpackages.com/packages/anilken-turkpin-api)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
