PHPackages                             vitexus/webpay-php5 - 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. vitexus/webpay-php5

ActiveLibrary[Payment Processing](/categories/payments)

vitexus/webpay-php5
===================

GP Webpay API Wrapper

314PHP

Since Apr 21Pushed 9mo ago1 watchersCompare

[ Source](https://github.com/Vitexus/gp-webpay-php-sdk)[ Packagist](https://packagist.org/packages/vitexus/webpay-php5)[ RSS](/packages/vitexus-webpay-php5/feed)WikiDiscussions php56 Synced 2mo ago

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

GP Webpay PHP SDK
=================

[](#gp-webpay-php-sdk)

[![Build Status](https://camo.githubusercontent.com/f2b968fe05b325a223e1e2a105867732672f83961305747ce8b6cba463159883/68747470733a2f2f7472617669732d63692e6f72672f6e6577504f50452f67702d7765627061792d7068702d73646b2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/newPOPE/gp-webpay-php-sdk)

Full featured PHP SDK for [GP Webpay payments](http://www.gpwebpay.cz).

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

[](#installation)

The best way to install GP Webpay PHP SDK is using [Composer](http://getcomposer.org/):

```
$ composer require vitexus/webpay-php5 dev-php56

## Setup

```php
$signer = new \AdamStipak\Webpay\Signer(
  $privateKeyFilepath,    // Path of private key.
  $privateKeyPassword,    // Password for private key.
  $publicKeyFilepath      // Path of public key.
);

$api = new \AdamStipak\Webpay\Api(
  $merchantNumber,    // Merchant number.
  $webpayUrl,         // URL of webpay.
  $signer             // instance of \AdamStipak\Webpay\Signer.
);

```

Create payment
--------------

[](#create-payment)

### Create payment url

[](#create-payment-url)

```
use \AdamStipak\Webpay\PaymentRequest;

$request = new PaymentRequest(...);

$url = $api->createPaymentRequestUrl($request); // $api instance of \AdamStipak\Webpay\Api

// use $url as you want. In most cases for redirecting to GP Webpay.
```

### Verify payment response

[](#verify-payment-response)

```
use \AdamStipak\Webpay\PaymentResponse;
use \AdamStipak\Webpay\Exception;

$response = new PaymentResponse(...); // fill response with response parameters (from request).

try {
  $api->verifyPaymentResponse($response);
}
catch (PaymentResponseException $e) {
  // PaymentResponseException has $prCode, $srCode for properties for logging GP Webpay response error codes.
}
catch (Exception $e) {
  // Digest is not correct.
}
```

\##Development

GP Webpay PHP SDK is developed in [Docker](https://docker.com) container via `docker-compose` command.

Example:

```
$ docker-compose run --rm default install  # install deps via composer
$ docker-compose run --rm default  # runs tests in container
```

Attach to container:

```
$ docker-compose run --rm default bash # runs bash in container and attach tty
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance41

Moderate activity, may be stable

Popularity9

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.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.

### Community

Maintainers

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

---

Top Contributors

[![newPOPE](https://avatars.githubusercontent.com/u/484382?v=4)](https://github.com/newPOPE "newPOPE (44 commits)")[![MartinVondrak](https://avatars.githubusercontent.com/u/22094256?v=4)](https://github.com/MartinVondrak "MartinVondrak (9 commits)")[![Vitexus](https://avatars.githubusercontent.com/u/2621130?v=4)](https://github.com/Vitexus "Vitexus (7 commits)")[![sebik](https://avatars.githubusercontent.com/u/873189?v=4)](https://github.com/sebik "sebik (4 commits)")[![sajfi](https://avatars.githubusercontent.com/u/597035?v=4)](https://github.com/sajfi "sajfi (1 commits)")[![wernerdweight](https://avatars.githubusercontent.com/u/2445436?v=4)](https://github.com/wernerdweight "wernerdweight (1 commits)")

### Embed Badge

![Health badge](/badges/vitexus-webpay-php5/health.svg)

```
[![Health](https://phpackages.com/badges/vitexus-webpay-php5/health.svg)](https://phpackages.com/packages/vitexus-webpay-php5)
```

###  Alternatives

[omnipay/paypal

PayPal gateway for Omnipay payment processing library

3156.8M53](/packages/omnipay-paypal)[eduardokum/laravel-boleto

Biblioteca com boletos para o laravel

626351.9k2](/packages/eduardokum-laravel-boleto)[tbbc/money-bundle

This is a Symfony bundle that integrates moneyphp/money library (Fowler pattern): https://github.com/moneyphp/money.

1961.9M](/packages/tbbc-money-bundle)[2checkout/2checkout-php

2Checkout PHP Library

83740.3k2](/packages/2checkout-2checkout-php)[smhg/sepa-qr-data

Generate QR code data for SEPA payments

61717.2k5](/packages/smhg-sepa-qr-data)[omnipay/dummy

Dummy driver for the Omnipay payment processing library

271.2M33](/packages/omnipay-dummy)

PHPackages © 2026

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