PHPackages                             mrjavaci/paytr - 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. [Payment Processing](/categories/payments)
4. /
5. mrjavaci/paytr

ActiveLibrary[Payment Processing](/categories/payments)

mrjavaci/paytr
==============

PayTr ödeme sistemi

04PHP

Since May 4Pushed 3y agoCompare

[ Source](https://github.com/Mrjavaci/paytr)[ Packagist](https://packagist.org/packages/mrjavaci/paytr)[ RSS](/packages/mrjavaci-paytr/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

PayTR ödeme sistemi için PHP kütüphanesi (PHP 7.1.3+)
=====================================================

[](#paytr-ödeme-sistemi-için-php-kütüphanesi-php-713)

Kurulum:

```
composer require mrjavaci/paytr
```

Örnek kullanım, `example` dizini içerisindedir.

```
$payment = new Mews\PayTr\Payment(
    require __DIR__ . '/../config/paytr.php'
);
```

ile oluşturulan nesnede varsayılan ayarlar kullanılır. Bu ayarlar `config/paytr.php` içerisindedir. Buradaki ayarları projenizdeki PayTR hesabınıza uygun şekilde güncellemeniz gerekmektedir.

İstenirse farklı ayarlarla nesneyi oluşturabilirsiniz. Örnek:

```
$payment = new Mews\PayTr\Payment([
    'apiUrl' => 'https://www.paytr.com/odeme/api/get-token',
    'merchantId' => 'XXXXXX',
    'merchantKey' => 'XXXXXXXXXXXX',
    'merchantSalt' => 'XXXXXXXXXXXX',
    'successUrl' => 'https://paytr.test/example/index.php?status=success',
    'failUrl' => 'https://paytr.test/example/index.php?status=fail',
]);
```

veya

```
$payment = new Mews\PayTr\Payment();
$payment->setConfig(new Mews\PayTr\Config([
    'apiUrl' => 'https://www.paytr.com/odeme/api/get-token',
    'merchantId' => 'XXXXXX',
    'merchantKey' => 'XXXXXXXXXXXX',
    'merchantSalt' => 'XXXXXXXXXXXX',
    'successUrl' => 'https://paytr.test/example/index.php?status=success',
    'failUrl' => 'https://paytr.test/example/index.php?status=fail',
]));
```

- `example` dizini içerisindeki `index.php` ve `payment.php` ödeme işlemleri için örnektir.
- `callback.php` ise, ödeme sonrası PayTR' den gelecek ödeme sonucunu işleyen kısımdır.

###  Health Score

14

—

LowBetter than 1% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity23

Early-stage or recently created project

 Bus Factor2

2 contributors hold 50%+ of commits

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/767cd171c645afe6bd8d148af9b835fe2857afda6c7dce1892a4e5ee348a3c25?d=identicon)[Mrjavaci](/maintainers/Mrjavaci)

---

Top Contributors

[![mewebstudio](https://avatars.githubusercontent.com/u/2125733?v=4)](https://github.com/mewebstudio "mewebstudio (12 commits)")[![mstfblci](https://avatars.githubusercontent.com/u/19329346?v=4)](https://github.com/mstfblci "mstfblci (6 commits)")[![hgasoft](https://avatars.githubusercontent.com/u/49619916?v=4)](https://github.com/hgasoft "hgasoft (3 commits)")[![Mrjavaci](https://avatars.githubusercontent.com/u/37361318?v=4)](https://github.com/Mrjavaci "Mrjavaci (3 commits)")[![muhammedkaraoglu](https://avatars.githubusercontent.com/u/25641500?v=4)](https://github.com/muhammedkaraoglu "muhammedkaraoglu (1 commits)")

### Embed Badge

![Health badge](/badges/mrjavaci-paytr/health.svg)

```
[![Health](https://phpackages.com/badges/mrjavaci-paytr/health.svg)](https://phpackages.com/packages/mrjavaci-paytr)
```

###  Alternatives

[msilabs/bkash

bKash Payment Gateway API for Laravel Framework.

181.2k](/packages/msilabs-bkash)[binkode/laravel-paystack

A description for laravel-paystack.

112.1k](/packages/binkode-laravel-paystack)

PHPackages © 2026

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