PHPackages                             rodgermd/sofort2-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. rodgermd/sofort2-bundle

ActiveSymfony-bundle

rodgermd/sofort2-bundle
=======================

Symfony 2 bundle for sofort payment PHP library

v0.3.2(11y ago)34.0k1[1 PRs](https://github.com/rodgermd/sofort2-bundle/pulls)MITPHP

Since Apr 16Pushed 10y ago1 watchersCompare

[ Source](https://github.com/rodgermd/sofort2-bundle)[ Packagist](https://packagist.org/packages/rodgermd/sofort2-bundle)[ Docs](https://github.com/rodgermd/sofort2-bundle)[ RSS](/packages/rodgermd-sofort2-bundle/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (1)Versions (6)Used By (0)

sofort2-bundle
==============

[](#sofort2-bundle)

Symfony2 Bundle for Sofort PHP Library 2.x

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

[](#installation)

### Add bundle

[](#add-bundle)

---

AppKernel.php:

```
public function registerBundles()
{
    $bundles = array(
    ...
    new Sofort\SofortBundle(),
    ...
}
```

### Add controller routing

[](#add-controller-routing)

---

routing.yml:

```
sofort_controller:
    resource: "@SofortBundle/Controller/"
    type: annotation
    prefix: /sofort
```

### Optionally add test config key

[](#optionally-add-test-config-key)

parameters.yml

```
sofort:
  test_key: 'XXX:XXX:XXXXXXXXXXXX'
```

Usage
-----

[](#usage)

### Manager

[](#manager)

```
  $manager = $container->get('sofort.manager')
  $manager->setConfigKey($sofortConfigKey);
```

### request create transaction

[](#request-create-transaction)

```
// Prepares model

$model = new PaymentRequestModel();
$model
  ->setAmount(0.1)
  ->setReason('test reason')
  ->setCountry('DE')
  ->setName('Max Mustermann')
  ->setAccountNumber('88888888')
  ->setBankCode('12345678');

// Call manager

$event = $manager->createTransaction($model);
```

When calling $manager-&gt;createTransaction($model), the 'sofort.transaction.created' event is fired with TransactionCreateEvent argument.

The argument contains $response and $transactionId properties

### request transaction details

[](#request-transaction-details)

```
$response = $manager->requestTransaction($transactionId);
```

The $response is ant instance of SofortLibTransactionData.

On successfull details retrieve, the event SofortEvents::DETAILS is fired with TransactionDetailsEvent as argument

SofortLibTransactionData methods available:

- getAmount
- getAmountRefunded
- getCount
- getPaymentMethod
- getConsumerProtection
- getStatus
- getStatusReason
- getStatusModifiedTime
- getLanguageCode
- getCurrency
- getTransaction
- getReason
- getUserVariable
- getTime
- getProjectId
- getRecipientHolder
- getRecipientAccountNumber
- getRecipientBankCode
- getRecipientCountryCode
- getRecipientBankName
- getRecipientBic
- getRecipientIban
- getSenderHolder
- getSenderAccountNumber
- getSenderBankCode
- getSenderCountryCode
- getSenderBankName
- getSenderBic
- getSenderIban

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% 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 ~40 days

Total

5

Last Release

4248d ago

### Community

Maintainers

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

---

Top Contributors

[![sotn0r](https://avatars.githubusercontent.com/u/5553507?v=4)](https://github.com/sotn0r "sotn0r (1 commits)")[![Timo-Linde](https://avatars.githubusercontent.com/u/9592381?v=4)](https://github.com/Timo-Linde "Timo-Linde (1 commits)")

### Embed Badge

![Health badge](/badges/rodgermd-sofort2-bundle/health.svg)

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

PHPackages © 2026

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