PHPackages                             gingerplugins/ginger-plugin-sdk - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. gingerplugins/ginger-plugin-sdk

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

gingerplugins/ginger-plugin-sdk
===============================

Extra layer for ginger-php library to use in plugin development.

1.5.6(2mo ago)051[1 PRs](https://github.com/gingerpayments/ginger-php-plugin-sdk/pulls)MITPHPCI failing

Since Jan 20Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/gingerpayments/ginger-php-plugin-sdk)[ Packagist](https://packagist.org/packages/gingerplugins/ginger-plugin-sdk)[ RSS](/packages/gingerplugins-ginger-plugin-sdk/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (3)Versions (22)Used By (0)

Ginger Plugin SDK
=================

[](#ginger-plugin-sdk)

This library is custom developed for Ginger API, based on schemas from API.
Should be used with payment plugins or for order creation.

Available functionality :
=========================

[](#available-functionality-)

- Creation Order entity with all related entities.
- Post the new order to Ginger API.

Overview :
==========

[](#overview-)

Entities Overview
=================

[](#entities-overview)

- [Transactions](#transactions)
    - Transaction
        - Payment Method
            - [Payment Method Details](#payment-method-details)
- Description
- Amount
- Customer
    - Birthdate
    - Address
        - Country
- Order Lines
    - Line
- Extra
- Client

Transactions
------------

[](#transactions)

*This entity contains several single transactions, basically no more than 1 transaction.*

- To initialize new object :

```
$transactions = new Transactions(
    new Transaction(...)
);
```

- To add new transaction :

```
$transactions->addTransaction($transaction);
```

- To remove transaction by index :

```
$transactions->removeTransaction($index);
```

### Transaction

[](#transaction)

*This entity contains general payment information. You should use this entity to tell the API how to process your request.*

- To initialize new object :

```
$transaction = new Transaction(
    paymentMethod: "apple-pay"
);
```

- To add Payment Method Details there is two ways :

    - While initializing

    ```
    $transaction = new Transaction(
      paymentMethod: "ideal",
      paymentMethodDetails: new PaymentMethodDetails(...)
    );
    ```

    - Through std object exemplar, in way of expanding its properties (for now only with prepared for payment methods).

    ```
    $transaction->getPaymentMethodDetails()->setPaymentMethodDetailsIdeal();
    ```
- To receive a Payment Method Details :

```
$transaction->getPaymentMethodDetails();
```

### Payment Method

[](#payment-method)

*This field should be used to store payment name.*

#### Payment Method Details

[](#payment-method-details)

*This entity contains additional payload for payment method, such as issuer id, hosted fields data
or data for recurring payments.*

- For now, only string types of attributes values are supported.

###  Health Score

44

—

FairBetter than 91% of packages

Maintenance93

Actively maintained with recent releases

Popularity5

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 51% 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 ~100 days

Recently: every ~181 days

Total

16

Last Release

68d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/711ab838d0928c00ac63f5ef73dc27b6578c3e23c440dfeb15f03131065a4847?d=identicon)[tiutiunnykleasoft](/maintainers/tiutiunnykleasoft)

---

Top Contributors

[![sorshireality](https://avatars.githubusercontent.com/u/49448647?v=4)](https://github.com/sorshireality "sorshireality (101 commits)")[![tiutiunnykleasoft](https://avatars.githubusercontent.com/u/60009163?v=4)](https://github.com/tiutiunnykleasoft "tiutiunnykleasoft (45 commits)")[![Denis-Tsyganok-Leasoft](https://avatars.githubusercontent.com/u/80386578?v=4)](https://github.com/Denis-Tsyganok-Leasoft "Denis-Tsyganok-Leasoft (19 commits)")[![bo-shev](https://avatars.githubusercontent.com/u/56201331?v=4)](https://github.com/bo-shev "bo-shev (17 commits)")[![BohdanLeasoft](https://avatars.githubusercontent.com/u/90330067?v=4)](https://github.com/BohdanLeasoft "BohdanLeasoft (8 commits)")[![jorns](https://avatars.githubusercontent.com/u/2010600?v=4)](https://github.com/jorns "jorns (8 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/gingerplugins-ginger-plugin-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/gingerplugins-ginger-plugin-sdk/health.svg)](https://phpackages.com/packages/gingerplugins-ginger-plugin-sdk)
```

PHPackages © 2026

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