PHPackages                             martyn911/payop - 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. martyn911/payop

ActiveLibrary

martyn911/payop
===============

Payop API Wrapper

v1.0.1(7y ago)2512[1 issues](https://github.com/Martyn911/payop/issues)MITPHPPHP &gt;=5.6.0

Since Feb 18Pushed 7y ago1 watchersCompare

[ Source](https://github.com/Martyn911/payop)[ Packagist](https://packagist.org/packages/martyn911/payop)[ RSS](/packages/martyn911-payop/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (2)DependenciesVersions (3)Used By (0)

PAYOP API WRAPPER
-----------------

[](#payop-api-wrapper)

### Include base class

[](#include-base-class)

```

require_once 'Payop.php';
const PAYOK_PUBLIC = 'public_key';
const PAYOK_SECRET = 'secret_key';

```

### Init payment

[](#init-payment)

```

// Order params
$params['order']['id'] = 1;
$params['order']['amount'] = '2.0000';
$params['order']['currency'] = 'UAH';
$params['order']['description'] = 'test payment';
$params['customer']['email'] = 'test@mail.ua';
$params['resultUrl'] = 'https://site.ua/success.html';
$params['failUrl'] = 'https://site.ua/error.html';

$payop = new Payop(PAYOK_PUBLIC, PAYOK_SECRET);

header("Location: " . $payop->createPayment($params));

```

### Handle response

[](#handle-response)

```

$payop = new Payop(PAYOK_PUBLIC, PAYOK_SECRET);

$response = $payop->paymentHandler();

if($response->status == Payop::STATUS_WAIT){
    //wait
}

if($response->status == Payop::STATUS_SUCCESS){
    //success
}

if($response->status == Payop::STATUS_ERROR){
    //error
}

print_r($response);

```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 60% 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

2642d ago

### Community

Maintainers

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

---

Top Contributors

[![sergeyflance](https://avatars.githubusercontent.com/u/120495521?v=4)](https://github.com/sergeyflance "sergeyflance (3 commits)")[![Martyn911](https://avatars.githubusercontent.com/u/9728008?v=4)](https://github.com/Martyn911 "Martyn911 (2 commits)")

### Embed Badge

![Health badge](/badges/martyn911-payop/health.svg)

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

PHPackages © 2026

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