PHPackages                             azaharizaman/nexus-payment - 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. [Payment Processing](/categories/payments)
4. /
5. azaharizaman/nexus-payment

ActiveLibrary[Payment Processing](/categories/payments)

azaharizaman/nexus-payment
==========================

Framework-agnostic payment domain package providing unified payment entity, instruments, allocations, and event-driven integration for AR/AP/Payroll

v0.1.0-alpha1(2mo ago)00MITPHPPHP ^8.3

Since May 5Pushed 2mo agoCompare

[ Source](https://github.com/azaharizaman/nexus-payment)[ Packagist](https://packagist.org/packages/azaharizaman/nexus-payment)[ RSS](/packages/azaharizaman-nexus-payment/feed)WikiDiscussions main Synced 1w ago

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

Nexus\\Payment
==============

[](#nexuspayment)

**Version:** 0.1.0
**Status:** In Development
**PHP:** ^8.3

Overview
--------

[](#overview)

`Nexus\Payment` is the core payment domain package providing a unified payment model for handling monetary transfers across Accounts Receivable, Accounts Payable, and Payroll domains. This package follows the **Progressive Disclosure Pattern** - it covers 80% of payment use cases, with extension packages available for advanced functionality.

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

[](#installation)

```
composer require azaharizaman/nexus-payment
```

Features
--------

[](#features)

- **Unified Payment Entity** - Single `PaymentInterface` spanning AR/AP/Payroll
- **Payment Instruments** - Bank accounts, cards, and wallet abstractions
- **Allocation Engine** - FIFO, LIFO, Proportional, Manual allocation strategies
- **Event-Driven** - Domain events for integration with other packages
- **Multi-Tenant** - Full tenant isolation
- **Framework-Agnostic** - Works with Laravel, Symfony, or any PHP framework

Quick Start
-----------

[](#quick-start)

```
use Nexus\Payment\Contracts\PaymentPersistInterface;
use Nexus\Payment\Enums\PaymentDirection;
use Nexus\Payment\Enums\PaymentMethod;
use Nexus\Common\ValueObjects\Money;

final readonly class PaymentService
{
    public function __construct(
        private PaymentPersistInterface $paymentPersist,
    ) {}

    public function recordPayment(
        string $tenantId,
        string $payerId,
        Money $amount,
    ): string {
        // Implementation
    }
}
```

Extension Packages
------------------

[](#extension-packages)

For advanced functionality, see these extension packages:

PackagePurpose`azaharizaman/nexus-payment-rails`ACH, Wire, Check, RTGS payment rails`azaharizaman/nexus-payment-gateway`Stripe, PayPal, Square integrations`azaharizaman/nexus-payment-bank`NACHA, SWIFT, ISO 20022 bank files`azaharizaman/nexus-payment-wallet`Digital wallets (GrabPay, DuitNow)`azaharizaman/nexus-payment-recurring`Subscriptions and standing ordersDocumentation
-------------

[](#documentation)

- [Requirements](REQUIREMENTS.md)
- [Implementation Summary](IMPLEMENTATION_SUMMARY.md)
- [Test Suite Summary](TEST_SUITE_SUMMARY.md)

License
-------

[](#license)

MIT License. See [LICENSE](LICENSE) for details.

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance84

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 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

Unknown

Total

1

Last Release

81d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/117408?v=4)[Azahari Zaman](/maintainers/azaharizaman)[@azaharizaman](https://github.com/azaharizaman)

---

Top Contributors

[![azaharizaman](https://avatars.githubusercontent.com/u/117408?v=4)](https://github.com/azaharizaman "azaharizaman (14 commits)")[![Copilot](https://avatars.githubusercontent.com/in/1143301?v=4)](https://github.com/Copilot "Copilot (14 commits)")

---

Tags

paymentAccountingERPframework agnosticpayableallocationreceivable

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/azaharizaman-nexus-payment/health.svg)

```
[![Health](https://phpackages.com/badges/azaharizaman-nexus-payment/health.svg)](https://phpackages.com/packages/azaharizaman-nexus-payment)
```

###  Alternatives

[symfony/symfony

The Symfony PHP framework

31.4k87.2M2.2k](/packages/symfony-symfony)[symfony/mailer

Helps sending emails

1.6k409.1M1.5k](/packages/symfony-mailer)[drupal/core-recommended

Locked core dependencies; require this project INSTEAD OF drupal/core.

6942.5M425](/packages/drupal-core-recommended)[web-auth/webauthn-lib

FIDO2/Webauthn Support For PHP

12510.5M141](/packages/web-auth-webauthn-lib)[web-auth/webauthn-framework

FIDO2/Webauthn library for PHP and Symfony Bundle.

515100.5k3](/packages/web-auth-webauthn-framework)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M600](/packages/shopware-core)

PHPackages © 2026

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