PHPackages                             paygol/php-sdk - 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. paygol/php-sdk

ActiveLibrary[Payment Processing](/categories/payments)

paygol/php-sdk
==============

PHP SDK for Paygol API and Webcheckout implementation

v1.0.3(7y ago)16.3k↓28.3%2MITPHPPHP &gt;=5.6.4

Since Jun 10Pushed 7y agoCompare

[ Source](https://github.com/PaygolSPA/pg-php-sdk)[ Packagist](https://packagist.org/packages/paygol/php-sdk)[ RSS](/packages/paygol-php-sdk/feed)WikiDiscussions master Synced yesterday

READMEChangelog (4)DependenciesVersions (5)Used By (0)

PHP SDK for API and Webcheckout implementation
==============================================

[](#php-sdk-for-api-and-webcheckout-implementation)

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

[](#installation)

### Requirements

[](#requirements)

PHP 5.6.4 and later.

### Developer Documentation

[](#developer-documentation)

[Official Paygol Documentation](https://devs.paygol.com)

### Composer

[](#composer)

It's recommended to use [composer](http://getcomposer.org) or you can download the latest release.

```
composer require paygol/php-sdk

```

Example
-------

[](#example)

```
require_once '../vendor/autoload.php';

$service_id = "123";
$shared_secret = "7c1a6a24-7943-102d-92f8-29573711ad31";

try {
    $pg = new \Paygol\API($service_id, $shared_secret);

    $redirectUrls = new \Paygol\Models\RedirectUrls();
    $redirectUrls->setRedirects(
      "https://www.my-site.com/success",
      "https://www.my-site.com/failure"
    ); // optional

    $pg->setRedirects($redirectUrls);

    $pg->setCountry('DE');
    $pg->setPrice(10.00, 'EUR');
    $pg->setPaymentMethod('bitcoin');

    $payer = new \Paygol\Models\Payer();
    $payer->setFirstName('John');
    $payer->setLastName('Doe');
    $payer->setEmail('jdoe@my-site.com');
    $payer->setBIC('123423432');

    $pg->setPayer($payer);

    $payment = $pg->createPayment();

    var_dump( $payment );

    if (!empty($payment['data']['payment_method_url'])) {
        // do something
    }
} catch (\Exception $e) {
    die($e->getMessage());
}

```

License
-------

[](#license)

Read [License](https://github.com/PaygolSPA/php-sdk/blob/master/LICENSE) for more licensing information.

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

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

Total

4

Last Release

2558d ago

### Community

Maintainers

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

---

Top Contributors

[![PaygolSPA](https://avatars.githubusercontent.com/u/51677861?v=4)](https://github.com/PaygolSPA "PaygolSPA (1 commits)")

### Embed Badge

![Health badge](/badges/paygol-php-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/paygol-php-sdk/health.svg)](https://phpackages.com/packages/paygol-php-sdk)
```

###  Alternatives

[msilabs/bkash

bKash Payment Gateway API for Laravel Framework.

181.2k](/packages/msilabs-bkash)

PHPackages © 2026

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