PHPackages                             gingerpayments/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. gingerpayments/ginger-plugin-sdk

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

gingerpayments/ginger-plugin-sdk
================================

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

1.5.6(2mo ago)0812↓33.3%1[1 issues](https://github.com/gingerpayments/ginger-php-plugin-sdk/issues)[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/gingerpayments/ginger-plugin-sdk)[ RSS](/packages/gingerpayments-ginger-plugin-sdk/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (6)Versions (23)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

46

—

FairBetter than 93% of packages

Maintenance85

Actively maintained with recent releases

Popularity17

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity59

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

78d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/507a164e15ddb49dc91079df0f966de9cfb83f59133f9870278c979b95ab7462?d=identicon)[gingerpayments](/maintainers/gingerpayments)

![](https://www.gravatar.com/avatar/10433980df605a27da43db5a16ea916bfc25ad0c958b5ac34be377173397cf3e?d=identicon)[Denis-Tsyganok-Leasoft](/maintainers/Denis-Tsyganok-Leasoft)

---

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/gingerpayments-ginger-plugin-sdk/health.svg)

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

###  Alternatives

[arrowjustdoit/crontab

Crontab extension for laravel-admin

334.0k](/packages/arrowjustdoit-crontab)

PHPackages © 2026

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