PHPackages                             matthiasmullie/ogone - 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. matthiasmullie/ogone

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

matthiasmullie/ogone
====================

Wrapper class to make Ogone implementations a lot easier

1.0.1(11y ago)413.7k5MITPHPPHP &gt;=5.3.0

Since Apr 15Pushed 11y ago1 watchersCompare

[ Source](https://github.com/matthiasmullie/ogone)[ Packagist](https://packagist.org/packages/matthiasmullie/ogone)[ Docs](https://github.com/matthiasmullie/ogone)[ RSS](/packages/matthiasmullie-ogone/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (3)Used By (0)

Ogone
=====

[](#ogone)

Example usage
-------------

[](#example-usage)

```
/*
 * Build your Ogone object; you'll need to do this to build the submission form
 * as well as to process the result from Ogone.
 */

// order details
$orderID = 1;
$amount = 50;
$currency = 'EUR';

// your Ogone config setup (see Ogone class phpdoc for more info)
$pspId = '';
$shaIn = '';
$shaOut = '';
$digest = 'SHA512'; // value can be either SHA1', 'SHA256' or 'SHA512
$environment = 'test'; // value can be either 'test' or 'prod'
$method = 'post'; // value can be either 'get' or 'post'
$verification = 'each'; // value can be either 'main' or 'each'

// create Ogone-object
use MatthiasMullie\Ogone;
$ogone = new Ogone\Ogone($orderID, $amount, $pspId, $currency, $shaIn, $shaOut, $digest);

// define test or production (for real payments) Ogone environment
$ogone->setEnvironment($environment);
$ogone->setMethod($method);
$ogone->setVerification($verification);

/*
 * Initialize a payment: build the form data to submit to Ogone.
 */

// add parameters (see parameter list: https://secure.ogone.com/ncol/Ogone_e-Com-ADV_EN.pdf)
// here are some sample parameters
$ogone->setParameter('LANGUAGE', 'nl');
$ogone->setParameter('CN', 'Matthias Mullie');
$ogone->setParameter('EMAIL', 'ogone-example@mullie.eu');
$ogone->setParameter('OWNERADDRESS', '');
$ogone->setParameter('OWNERZIP', '');
$ogone->setParameter('OWNERTOWN', '');
$ogone->setParameter('OWNERCTY', '');
$ogone->setParameter('ACCEPTURL', '');
$ogone->setParameter('DECLINEURL', '');
$ogone->setParameter('EXCEPTIONURL', '');
$ogone->setParameter('CANCELURL', '');
$ogone->setParameter('TP', '');
// ...

// build form to submit
$form = '';
$parameters = $ogone->getFormParameters();
foreach($parameters as $key => $value) {
	$form .= '';
}
$form .= '';
$form .= '';

/*
 * Verify a payment.
 */

// verify the SHA signature
if($ogone->isCorrectSHA()) {
	// fetch all details retrieved from Ogone...
	$ogoneResponse = $ogone->getDetail(); // no parameter

	// ... or retrieve a specific value
	$status = $ogone->getDetail('status'); // 'status' parameter

	// your business logic here
}
```

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

[](#installation)

Simply add a dependency on matthiasmullie/ogone to your composer.json file if you use [Composer](https://getcomposer.org/) to manage the dependencies of your project:

```
composer require matthiasmullie/ogone
```

Although it's recommended to use Composer, you can actually include these files anyway you want.

License
-------

[](#license)

Ogone is [MIT](http://opensource.org/licenses/MIT) licensed.

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity31

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 86.7% 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 ~604 days

Total

2

Last Release

4171d ago

### Community

Maintainers

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

---

Top Contributors

[![matthiasmullie](https://avatars.githubusercontent.com/u/312776?v=4)](https://github.com/matthiasmullie "matthiasmullie (13 commits)")[![CaptainParalytic](https://avatars.githubusercontent.com/u/669362?v=4)](https://github.com/CaptainParalytic "CaptainParalytic (1 commits)")[![pwintermantel](https://avatars.githubusercontent.com/u/221216?v=4)](https://github.com/pwintermantel "pwintermantel (1 commits)")

### Embed Badge

![Health badge](/badges/matthiasmullie-ogone/health.svg)

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

PHPackages © 2026

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