PHPackages                             mews/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. mews/paytr

ActiveLibrary[Payment Processing](/categories/payments)

mews/paytr
==========

PayTr ödeme sistemi

0.3.5(2y ago)377.1k13MITPHPPHP &gt;=7.1.3CI failing

Since Oct 22Pushed 2y ago2 watchersCompare

[ Source](https://github.com/mewebstudio/paytr)[ Packagist](https://packagist.org/packages/mews/paytr)[ RSS](/packages/mews-paytr/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (7)Dependencies (2)Versions (9)Used By (0)

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

Kurulum:

```
composer require mews/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

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity35

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 54.2% 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 ~210 days

Recently: every ~239 days

Total

8

Last Release

924d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2125733?v=4)[MeWebStudio - Muharrem ERİN](/maintainers/mewebstudio)[@mewebstudio](https://github.com/mewebstudio)

---

Top Contributors

[![mewebstudio](https://avatars.githubusercontent.com/u/2125733?v=4)](https://github.com/mewebstudio "mewebstudio (13 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)")[![muhammedkaraoglu](https://avatars.githubusercontent.com/u/25641500?v=4)](https://github.com/muhammedkaraoglu "muhammedkaraoglu (1 commits)")[![ufukseyithan](https://avatars.githubusercontent.com/u/29460896?v=4)](https://github.com/ufukseyithan "ufukseyithan (1 commits)")

---

Tags

paymentpaytr

### Embed Badge

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

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

###  Alternatives

[laraveldaily/laravel-invoices

Missing invoices for Laravel

1.5k1.3M4](/packages/laraveldaily-laravel-invoices)

PHPackages © 2026

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