PHPackages                             darvinstudio/darvin-payment-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. [API Development](/categories/api)
4. /
5. darvinstudio/darvin-payment-bundle

ActiveSymfony-bundle[API Development](/categories/api)

darvinstudio/darvin-payment-bundle
==================================

This Omnipay-based bundle provides basic payment logic for Symfony applications.

6.2.1(4y ago)35634MITPHPPHP &gt;=7.2

Since Jul 9Pushed 4y ago3 watchersCompare

[ Source](https://github.com/DarvinStudio/DarvinPaymentBundle)[ Packagist](https://packagist.org/packages/darvinstudio/darvin-payment-bundle)[ RSS](/packages/darvinstudio-darvin-payment-bundle/feed)WikiDiscussions master Synced yesterday

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

DarvinPaymentBundle
===================

[](#darvinpaymentbundle)

This Omnipay-based bundle provides basic payment logic for Symfony applications.

Features:
---------

[](#features)

- creating payment
- approving payment before purchase
- standard purchase and purchase with pre-authorise
- refund or canceling payment
- the sending notify emails of every changed payment state
- logging every actions in log and Event entity
- provides the interface for the adding receipt to payment

Payment states
--------------

[](#payment-states)

To manage payment state used Symfony Workflow Component.

Scheme of payment state changes:

[![Scheme of payment state changes](Resources/doc/workflow.png)](Resources/doc/workflow.png)

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

[](#installation)

```
    composer require darvinstudio/darvin-payment-bundle
```

How to create Payment
---------------------

[](#how-to-create-payment)

```
    /** @var $paymentFactory \Darvin\PaymentBundle\Payment\Factory\PaymentFactoryInterface */
    $payment = $paymentFactory->createPayment(
        new PaidOrder(
            (string)$order->getId(),
            get_class($order),
            (string)$order->getNumber()
        ),
        $order->getPrice(),
        new Client(
            (string)$user->getId(),
            get_class($user),
            $user->getEmail()
        ),
        'USD'
    );
```

How to get payment's link in twig
---------------------------------

[](#how-to-get-payments-link-in-twig)

```
    {{ payment_purchase_urls(payment) }}
```

How to get all available payment's links for order
--------------------------------------------------

[](#how-to-get-all-available-payments-links-for-order)

```
    {{ payment_purchase_widget(order) }}
```

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 80.8% 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 ~65 days

Recently: every ~43 days

Total

18

Last Release

1803d ago

Major Versions

1.0.4 → 5.x-dev2019-10-29

5.x-dev → 6.0.02020-09-12

PHP version history (2 changes)1.0.1PHP ^5.6||^7.0

6.0.0PHP &gt;=7.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/7494101d87a9ef1b743764adadbf977914bffca325931201f7a46c6ab58b5283?d=identicon)[darvinstudio](/maintainers/darvinstudio)

---

Top Contributors

[![alex-volodin](https://avatars.githubusercontent.com/u/9865423?v=4)](https://github.com/alex-volodin "alex-volodin (84 commits)")[![semin-lev](https://avatars.githubusercontent.com/u/4838826?v=4)](https://github.com/semin-lev "semin-lev (10 commits)")[![nmavrin](https://avatars.githubusercontent.com/u/35203558?v=4)](https://github.com/nmavrin "nmavrin (7 commits)")[![sonnymilton](https://avatars.githubusercontent.com/u/28928301?v=4)](https://github.com/sonnymilton "sonnymilton (3 commits)")

---

Tags

apisymfonypaymentgatewaypaymerchantomnipaysberbanktelrdarvin

### Embed Badge

![Health badge](/badges/darvinstudio-darvin-payment-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/darvinstudio-darvin-payment-bundle/health.svg)](https://phpackages.com/packages/darvinstudio-darvin-payment-bundle)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.5k5.8M712](/packages/sylius-sylius)[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.5M378](/packages/easycorp-easyadmin-bundle)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.4M196](/packages/sulu-sulu)[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

1175.2k](/packages/rcsofttech-audit-trail-bundle)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

9317.2k55](/packages/open-dxp-opendxp)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1615.6k12](/packages/2lenet-crudit-bundle)

PHPackages © 2026

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