PHPackages                             eonx-com/eoneopay-phpsdk - 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. eonx-com/eoneopay-phpsdk

Abandoned → [eonx-com/payments-phpsdk](/?search=eonx-com%2Fpayments-phpsdk)Library[API Development](/categories/api)

eonx-com/eoneopay-phpsdk
========================

PHP SDK for interacting with the eoneopay

v1.0.8(6y ago)0138[1 PRs](https://github.com/eonx-com/eoneopay-phpsdk/pulls)BSD-3-ClausePHPPHP &gt;=7.1CI failing

Since Apr 16Pushed 5y ago4 watchersCompare

[ Source](https://github.com/eonx-com/eoneopay-phpsdk)[ Packagist](https://packagist.org/packages/eonx-com/eoneopay-phpsdk)[ RSS](/packages/eonx-com-eoneopay-phpsdk/feed)WikiDiscussions master Synced today

READMEChangelog (7)Dependencies (16)Versions (43)Used By (0)

EoneoPay PHP SDK
================

[](#eoneopay-php-sdk)

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

[](#transactions)

The status of the transaction can be determined using the state property. There are situations where a transaction can be approved or completed but reversed at a later time. The state property is the only way to determine the actual state of the transaction. A table listing the meaning of each of the state field values is below.

ValueStateDescription1PendingRequest received, pending processing2ProcessingRequest is being processed10Provisionally approvedMay be reversed, but funds could be available after clearing11ApprovedFunds will be available after clearing90Failed/reversed/declinedFunds could not be transferred, and are not available80Finalised/clearedFunds have transferred to destination are availableDevelopment
-----------

[](#development)

Main repository:

### Adding Entities

[](#adding-entities)

Entities are the class types the SDK exposes for serialising before sending to payments in JSON form, and the class type the responses are de-serialised to on response.

Entities are in the `src/Endpoints` directory, under the `EoneoPay\PhpSdk\Endpoints` namespace.

#### URIS

[](#uris)

URIs list the acceptable actions that can be performed against with a given entity. These can be accessed programmatically by calling the `uris()` method on an entity instance.

#### Entity Serialisation / @Groups

[](#entity-serialisation--groups)

The `@Groups` annotation indicates the which fields which will be serialised before being sent as JSON. The annotation uses `Symfony\Component\Serializer\Annotation\Groups`.

In the following example, the `$actionUrl` would be serialised when being sent to payments for both `create` and `update` calls, but `$amount` will only be sent for the initial `create` call.

```
use Symfony\Component\Serializer\Annotation\Groups;
trait SecurityTrait
{
    /**
     * @Groups({"create", "update"})
     */
    protected $actionUrl;

    /**
     * @Groups({"create"})
     */
    protected $amount;
```

The `@Groups` annotations can be used on the same fields as `@Assert` annotations below.

#### Entity Deserialisation / Validation

[](#entity-deserialisation--validation)

Validation is applied to the JSON responses from payments to ensure that the returning fields are valid.

In the following examples, `$id` must be a string, which can't be null. `$ewallet` must be de-serialisble to a a valid object of the type Ewallet.

Note that the `@var` annotation is used to discover the entity type that the contents of `$ewallet` should be de-serialised to.

```
use Symfony\Component\Validator\Constraints as Assert;
trait EwalletFundingTrait
{
    /**
     * @Assert\NotNull()
     * @Assert\Type(type="\EoneoPay\PhpSdk\Endpoints\Ewallet")
     * @var \EoneoPay\PhpSdk\Endpoints\Ewallet|null
     */
    protected $ewallet;

    /**
     * @Assert\NotNull()
     * @Assert\Type(type="string")
     * @var string|null
     */
    protected $id;
```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~7 days

Total

33

Last Release

2348d ago

### Community

Maintainers

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

---

Top Contributors

[![ketanp77](https://avatars.githubusercontent.com/u/37789589?v=4)](https://github.com/ketanp77 "ketanp77 (59 commits)")[![merk](https://avatars.githubusercontent.com/u/278097?v=4)](https://github.com/merk "merk (26 commits)")[![liweiyi88](https://avatars.githubusercontent.com/u/7248260?v=4)](https://github.com/liweiyi88 "liweiyi88 (9 commits)")[![brendonofficial](https://avatars.githubusercontent.com/u/4957574?v=4)](https://github.com/brendonofficial "brendonofficial (8 commits)")[![rashmitsingh](https://avatars.githubusercontent.com/u/47509325?v=4)](https://github.com/rashmitsingh "rashmitsingh (8 commits)")[![bmm83](https://avatars.githubusercontent.com/u/51302697?v=4)](https://github.com/bmm83 "bmm83 (7 commits)")[![sjdaws](https://avatars.githubusercontent.com/u/659316?v=4)](https://github.com/sjdaws "sjdaws (7 commits)")[![edwardmurrell-loyaltycorp](https://avatars.githubusercontent.com/u/44623821?v=4)](https://github.com/edwardmurrell-loyaltycorp "edwardmurrell-loyaltycorp (5 commits)")[![ttam](https://avatars.githubusercontent.com/u/177120?v=4)](https://github.com/ttam "ttam (2 commits)")[![natepage](https://avatars.githubusercontent.com/u/11576446?v=4)](https://github.com/natepage "natepage (2 commits)")

---

Tags

sdkeoneopay

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/eonx-com-eoneopay-phpsdk/health.svg)

```
[![Health](https://phpackages.com/badges/eonx-com-eoneopay-phpsdk/health.svg)](https://phpackages.com/packages/eonx-com-eoneopay-phpsdk)
```

###  Alternatives

[mocking-magician/coinbase-pro-sdk

Library for coinbase pro API calls

233.2k](/packages/mocking-magician-coinbase-pro-sdk)

PHPackages © 2026

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