Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ phpunit.xml export-ignore
tests/ export-ignore
var/
.github/ export-ignore
.php-cs-fixer.php export-ignore
phpstan.neon export-ignore
phpstan-baseline.neon export-ignore
54 changes: 46 additions & 8 deletions .github/workflows/ci-php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,56 @@ on:
pull_request:

jobs:
code-style:
runs-on: ubuntu-latest
name: Code Style (PHP CS Fixer)

steps:
- uses: actions/checkout@v7

- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.4'
coverage: none

- name: Configure Composer
run: composer config --global policy.advisories.block false

- name: Install dependencies
run: composer update --no-interaction --prefer-dist

- name: Check code style
run: composer cs-check

phpstan:
runs-on: ubuntu-latest
name: PHPStan (level 8)

steps:
- uses: actions/checkout@v7

- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.4'
coverage: none

- name: Configure Composer
run: composer config --global policy.advisories.block false

- name: Install dependencies
run: composer update --no-interaction --prefer-dist

- name: Run PHPStan
run: composer phpstan

test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- php: '7.4'
symfony: '^4.4'
- php: '7.4'
symfony: '^5.4'
- php: '8.1'
symfony: '^5.4'
- php: '8.1'
Expand All @@ -23,8 +63,6 @@ jobs:
symfony: '^6.4'
- php: '8.2'
symfony: '^7.4'
- php: '8.2'
symfony: '^7.4'
- php: '8.3'
symfony: '^7.4'
- php: '8.4'
Expand Down Expand Up @@ -57,7 +95,7 @@ jobs:
composer update --no-interaction --prefer-dist

- name: Run unit tests
run: vendor/bin/simple-phpunit --testsuite=unit
run: vendor/bin/phpunit --testsuite=unit

- name: Run integration tests
run: vendor/bin/simple-phpunit --testsuite=integration
run: vendor/bin/phpunit --testsuite=integration
20 changes: 20 additions & 0 deletions .php-cs-fixer.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?php

$finder = PhpCsFixer\Finder::create()
->in([__DIR__ . '/src', __DIR__ . '/tests'])
->name('*.php');

return (new PhpCsFixer\Config())
->setRules([
'@PSR12' => true,
'@Symfony' => true,
'array_syntax' => ['syntax' => 'short'],
'ordered_imports' => ['sort_algorithm' => 'alpha'],
'no_unused_imports' => true,
'trailing_comma_in_multiline' => true,
'phpdoc_order' => true,
'declare_strict_types' => false,
'concat_space' => ['spacing' => 'one'],
])
->setFinder($finder)
->setCacheFile(__DIR__ . '/var/.php-cs-fixer.cache');
28 changes: 28 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,33 @@
# Değişiklik Geçmişi

## [2.0.0] - 2026-07-15

### Kırıcı Değişiklikler
- **Symfony v4 desteği kaldırıldı;** minimum desteklenen Symfony sürümü v5.4'tür
- **PHP minimum sürümü** `>=7.4` → `>=8.0`
- **mews/pos** `^1.x` → `^2.0`
- **Konfigurasyon — `credentials`:** `enc_key` alanı `secret_key` olarak yeniden adlandırıldı
- **Konfigurasyon — `credentials`:** `payment_model` alanı kaldırıldı
- **Konfigurasyon — `lang`:** Banka düzeyindeki `lang` alanı kaldırıldı; `gateway_configs.lang` altına taşındı
- **Konfigurasyon — `test_mode`:** Banka düzeyindeki `test_mode` (v1.2.0'dan beri deprecated) tamamen kaldırıldı; `gateway_configs.test_mode` kullanın
- **Konfigurasyon — `gateway_endpoints`:** `payment_api_2` kaldırıldı (Param 3D Host ödemeleri için ayrı `Param3DHostPos` gateway'i kullanın)
- **Konfigurasyon — KuveytPos / VakifKatilimPos / PayFlexCPV4Pos:** `gateway_3d` endpoint'i artık zorunlu değil; v2 bunu `payment_api`'den türetiyor
- **Gateway sınıf adları:** `Mews\Pos\Gateways\*` → `Mews\Pos\Gateway\*`
- **Gateway yeniden adlandırmalar:** `EstPos` ve `EstV3Pos` → `AssecoPos`; `PosNet` → `PosNetPos`
- **PHP sabit referanslar:** `Mews\Pos\Entity\Account\PayForAccount` → `Mews\Pos\Model\Account\PayForPosAccount`
- **Bundle `AccountFactory` sınıfı** silindi;

### Eklendi
- `IyzicoPos` gateway desteği (`Mews\Pos\Gateway\IyzicoPos`)
- `Param3DHostPos` gateway desteği (`Mews\Pos\Gateway\Param3DHostPos`) — ParamPos 3D Host ödemeleri için ayrı gateway
- `PayTrPos` gateway desteği (`Mews\Pos\Gateway\PayTrPos`)
- `gateway_configs.lang` ayarı tüm gateway'ler için geçerli

### Yükseltme
Detaylı yükseltme kılavuzu için [UPGRADE-2.0.md](docs/UPGRADE-2.0.md) dosyasına bakın.

---

## [1.3.0] - 2026-06-22

### Eklendi
Expand Down
Loading