PHPackages                             ysg/payment-core - 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. ysg/payment-core

ActiveLibrary[Payment Processing](/categories/payments)

ysg/payment-core
================

Core payment abstractions, contracts and DTOs for Laravel payment integrations.

v1.0.1(1mo ago)06↓66.7%1MITPHPPHP ^8.3

Since Jul 13Pushed 1mo agoCompare

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

READMEChangelogDependencies (2)Versions (3)Used By (1)

YSG Payment Core
================

[](#ysg-payment-core)

Core payment abstractions and contracts for Laravel payment integrations.

Features
--------

[](#features)

- Provider-agnostic payment contracts
- Immutable DTOs
- Shared payment responses
- Shared exceptions
- SOLID architecture
- Designed for extension

Requirements
------------

[](#requirements)

- PHP 8.3+
- Laravel 11+

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

[](#installation)

composer require ysg/payment-core

Purpose
-------

[](#purpose)

This package contains the shared abstractions used by payment provider implementations.

It intentionally contains no provider-specific code.

Provider packages (such as ysg/laravel-mpesa) implement the contracts defined here.

Included
--------

[](#included)

- PaymentProcessor contract
- PaymentRequest
- PaymentResponse
- Money
- Payer
- AccessToken
- Shared payment exceptions

License
-------

[](#license)

MIT

###  Health Score

40

—

FairBetter than 86% of packages

Maintenance90

Actively maintained with recent releases

Popularity4

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

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

Total

2

Last Release

48d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7213a6c1f672e2bd2be046a5bc833b9813b0d755a90310ef61d811075c679f5b?d=identicon)[Jdeu-ND](/maintainers/Jdeu-ND)

---

Top Contributors

[![Jdeu-ND](https://avatars.githubusercontent.com/u/202858785?v=4)](https://github.com/Jdeu-ND "Jdeu-ND (2 commits)")

---

Tags

laravelpaymentpaymentsgatewayfinance

### Embed Badge

![Health badge](/badges/ysg-payment-core/health.svg)

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3365.5M359](/packages/psalm-plugin-laravel)[laravel/horizon

Dashboard and code-driven configuration for Laravel queues.

4.2k104.7M370](/packages/laravel-horizon)[laravel/sail

Docker files for running a basic Laravel application.

1.9k220.0M1.5k](/packages/laravel-sail)[illuminate/database

The Illuminate Database package.

3.0k56.7M13.6k](/packages/illuminate-database)[laravel/ai

The official AI SDK for Laravel.

1.1k6.4M360](/packages/laravel-ai)[laravel/socialite

Laravel wrapper around OAuth 1 &amp; OAuth 2 libraries.

5.7k118.2M1.0k](/packages/laravel-socialite)

PHPackages © 2026

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