PHPackages                             mews/pos-bundle - 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/pos-bundle

ActiveSymfony-bundle[Payment Processing](/categories/payments)

mews/pos-bundle
===============

Virtual POS bundle for Turkey banks.

2.0.0(4w ago)7341MITPHPPHP &gt;=8.0CI passing

Since Sep 17Pushed 4w ago1 watchersCompare

[ Source](https://github.com/mewebstudio/PosBundle)[ Packagist](https://packagist.org/packages/mews/pos-bundle)[ Docs](https://github.com/mewebstudio/PosBundle)[ RSS](/packages/mews-pos-bundle/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (10)Dependencies (45)Versions (19)Used By (0)

Türk bankaları için sanal pos paketi (Symfony 5|6|7|8)
======================================================

[](#türk-bankaları-için-sanal-pos-paketi-symfony-5678)

Temel Paket
-----------

[](#temel-paket)

[mews/pos](https://github.com/mewebstudio/pos)

Ana başlıklar
-------------

[](#ana-başlıklar)

- [Minimum Gereksinimler](#minimum-gereksinimler)
- [Kurulum](#kurulum)
- [Servis Kullanımı](#servis-kullan%C4%B1m%C4%B1)
- [Örnek 3D Secure Ödeme](./docs/EXAMPLE_3D_SECURE_ODEME.md)
- [Konfigurasyon Yapısı ve Örnekler](./docs/EXAMPLE_CONFIGURATIONS.md)
- [API ve 3D Form verisini degiştirme](./docs/EXAMPLE-API-ISTEK-VE-3D-FORM-VERSINI-DEGISTIRME.md)
- [PosQuery Servisleri (geçmiş, taksit, BIN sorguları)](./docs/POS-QUERY.md)

Minimum Gereksinimler
---------------------

[](#minimum-gereksinimler)

- PHP &gt;= 8.0
- mews/pos ^2.0
- Symfony 5|6|7|8

Kurulum
-------

[](#kurulum)

1. ```
    $ composer require mews/pos-bundle
    ```
2. `config/packages/mews_pos.yaml` dosyası oluşturun
3. ve içine bu alttaki config örneği ekleyin: ```
    mews_pos:
      banks:
        asseco: # herhangi unique bir isim
          gateway_class: Mews\Pos\Gateway\AssecoPos
          credentials:
            merchant_id: 700xxxxxx
            user_name: ISXXXXXX #AssecoPos: kullanici adi
            user_password: ISYYYYY #AssecoPos: kullanici sifresi
            secret_key: TRPXXXXX
          gateway_endpoints: # ilgili ortamin (test/prod) URL'leriyle degistiriniz:
            payment_api: 'https://entegrasyon.asseco-see.com.tr/fim/api'
            gateway_3d: 'https://entegrasyon.asseco-see.com.tr/fim/est3Dgate'
            gateway_3d_host: 'https://sanalpos.sanalakpos.com.tr/fim/est3Dgate' # optional, 3D Host ödemeler için zorunlu
          gateway_configs:
            lang: !php/const Mews\Pos\PosInterface::LANG_TR # optional, default: LANG_TR
        yapikredi:
          gateway_class: Mews\Pos\Gateway\PosNetPos
          credentials:
            merchant_id: 670XXXXXXX # Üye İşyeri Numarası.
            terminal_id: 67XXXXXX # Üye İşyeri Terminal Numarası
            user_name: 27XXX # Üye İşyeri POSNET Numarası
            secret_key: 10,92,92,02,02,02,02,02,01 # Şifreleme anahtar
          gateway_endpoints:
            payment_api: 'https://setmpos.ykb.com/PosnetWebService/XML'
            gateway_3d: 'https://setmpos.ykb.com/3DSWebService/YKBPaymentService'
    ```

Diğer banka konfigurasyon örnekleri için bkz. [Konfigurasyon Yapısı ve Örnekler](./docs/EXAMPLE_CONFIGURATIONS.md).

Servis Kullanımı
----------------

[](#servis-kullanımı)

### POS Gateway inject etme

[](#pos-gateway-inject-etme)

`mews_pos.yaml`'daki **ilk banka** `PosInterface` tipiyle doğrudan inject edilebilir:

```
use Mews\Pos\PosInterface;

class MyService
{
    public function __construct(private PosInterface $pos) {}
}
```

**Belirli bir bankayı** inject etmek için argüman adını `mews_pos.yaml`'daki banka anahtarıyla eşleştirin:

```
use Mews\Pos\PosInterface;

class MyService
{
    public function __construct(
        private PosInterface $asseco,       // mews_pos.yaml'daki "asseco" bankası
        private PosInterface $yapikredi,    // mews_pos.yaml'daki "yapikredi" bankası
    ) {}
}
```

**Tüm bankalara** erişmek için `TaggedIterator` kullanın:

```
use Mews\Pos\PosInterface;
use Symfony\Component\DependencyInjection\Attribute\TaggedIterator;

class MyService
{
    public function __construct(
        #[TaggedIterator('mews_pos.gateway')]
        private iterable $banks,
    ) {}
}
```

Tam controller örneği için bkz. [Örnek 3D Secure Ödeme](./docs/EXAMPLE_3D_SECURE_ODEME.md).

---

### PosQuery inject etme

[](#posquery-inject-etme)

`PosQueryInterface`, ödeme işlemiyle ilişkili olmayan banka sorguları (işlem geçmişi, taksit oranları, BIN sorgusu vb.) için kullanılır. Her gateway PosQuery desteği sunmaz; bundle yalnızca `mews/pos` kütüphanesinin o gateway için bir PosQuery sınıfı tanımladığı durumlarda servisi oluşturur.

`mews_pos.yaml`'daki **ilk banka** PosQuery destekliyorsa doğrudan inject edilebilir:

```
use Mews\Pos\PosQuery\PosQueryInterface;

class MyService
{
    public function __construct(private PosQueryInterface $posQuery) {}
}
```

**Belirli bir bankayı** inject etmek için argüman adını banka anahtarıyla eşleştirin:

```
use Mews\Pos\PosQuery\PosQueryInterface;

class MyService
{
    public function __construct(
        private PosQueryInterface $asseco,
        private PosQueryInterface $yapikredi,
    ) {}
}
```

**Tüm PosQuery servislerine** erişmek için:

```
use Mews\Pos\PosQuery\PosQueryInterface;
use Symfony\Component\DependencyInjection\Attribute\TaggedIterator;

class MyService
{
    public function __construct(
        #[TaggedIterator('mews_pos.query')]
        private iterable $posQueries,
    ) {}
}
```

Tam örnek ve desteklenen sorgu tipleri için bkz. [PosQuery Servisleri](./docs/POS-QUERY.md).

---

License
-------

[](#license)

MIT

###  Health Score

51

—

FairBetter than 95% of packages

Maintenance94

Actively maintained with recent releases

Popularity14

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity72

Established project with proven stability

 Bus Factor1

Top contributor holds 77.6% 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 ~207 days

Recently: every ~71 days

Total

13

Last Release

29d ago

Major Versions

0.1.3 → 1.0.02024-05-19

1.x-dev → v2.x-dev2026-07-15

PHP version history (4 changes)0.0.1PHP ^7.2

0.1.1PHP ^7.1.3

0.1.3PHP &gt;=7.4

v2.x-devPHP &gt;=8.0

### Community

Maintainers

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

---

Top Contributors

[![nuryagdym](https://avatars.githubusercontent.com/u/26792980?v=4)](https://github.com/nuryagdym "nuryagdym (45 commits)")[![mewebstudio](https://avatars.githubusercontent.com/u/2125733?v=4)](https://github.com/mewebstudio "mewebstudio (13 commits)")

---

Tags

paymentpossanal-possymfony-bundlesymfony-paymentsymfony-possymfony-sanal-possymfony4symfony paymentsymfony sanal possymfony vitual pos

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k18.3M418](/packages/easycorp-easyadmin-bundle)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.8M667](/packages/shopware-core)[contao-community-alliance/dc-general

Universal data container for Contao

1581.4k93](/packages/contao-community-alliance-dc-general)

PHPackages © 2026

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