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

ActiveModulargaming-module[Payment Processing](/categories/payments)

modulargaming/payment
=====================

Payment module for Modular Gaming

v0.2(11y ago)124[2 issues](https://github.com/modulargaming/payment/issues)BSD-3-ClausePHPPHP &gt;=5.3.2

Since Sep 19Pushed 11y ago5 watchersCompare

[ Source](https://github.com/modulargaming/payment)[ Packagist](https://packagist.org/packages/modulargaming/payment)[ Docs](https://github.com/modulargaming/payment)[ RSS](/packages/modulargaming-payment/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (2)Versions (5)Used By (0)

[Modular Gaming Payment](http://www.modulargaming.com)
======================================================

[](#modular-gaming-payment)

Payment is a module for [Modular Gaming](https://github.com/modulargaming/modulargaming), a modular [persistent browser based game](http://www.pbbg.org) framework.

It adds support for processing payments within Modular Gaming, using the [Omnipay Library](https://github.com/adrianmacneil/omnipay).

Supported Gateways
------------------

[](#supported-gateways)

- PayPal Express Checkout
- PayPal Recurring Payments (Express Checkout)

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

[](#requirements)

- PHP 5.3.3+
- MySQL
- [Composer](http://getcomposer.org) (Dependency Manager)

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

[](#installation)

Payment is installed using composer, simply add it as a dependency to your `composer.json` file:

```
{
	"require": {
		"modulargaming/payment": "~0.1.0"
	}
}
```

Rewards
-------

[](#rewards)

**Note: Rewards are only for regular payments NOT Recurring.**

The reward system is driver based, this allows you to define multiple rewards for a single package. Currently only Points are supported, however it is quite easy to implement your own driver.

```
class Payment_Reward_Type extends Payment_Reward {

	private $_reward;

	public function __construct($reward)
	{
		$this->_reward = $reward;
	}

	public function reward(Model_User $user)
	{
		// TODO: Write the reward code.
	}

}
```

Example structure for rewards row in payment\_packages table

```
{
   "Points": 200
}
```

This will give the buyer 200 points.

For examples, check the current drivers, Payment/Reward.

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity51

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

Total

3

Last Release

4351d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/11527?v=4)[Modular Gaming](/maintainers/modulargaming)[@modulargaming](https://github.com/modulargaming)

---

Top Contributors

[![Hinton](https://avatars.githubusercontent.com/u/137855?v=4)](https://github.com/Hinton "Hinton (33 commits)")

---

Tags

paymentmodulargaming

### Embed Badge

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

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

###  Alternatives

[beelab/paypal-bundle

Simple bundle for Paypal integration

2226.7k](/packages/beelab-paypal-bundle)

PHPackages © 2026

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