PHPackages                             professionalweb/paymentgate-lib - 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. professionalweb/paymentgate-lib

ActiveLibrary[Payment Processing](/categories/payments)

professionalweb/paymentgate-lib
===============================

Library to communicate with Paymentgate API

00PHP

Since Jun 15Pushed 3y ago1 watchersCompare

[ Source](https://github.com/professional-web/payment-gate-lib)[ Packagist](https://packagist.org/packages/professionalweb/paymentgate-lib)[ RSS](/packages/professionalweb-paymentgate-lib/feed)WikiDiscussions develop Synced 1w ago

READMEChangelogDependenciesVersions (2)Used By (0)

Библиотека для работы с paycloud.tech()
===============================================================

[](#библиотека-для-работы-с-paycloudtechhttpspaycloudtech)

Требования
----------

[](#требования)

- PHP 7.1+

Установка
---------

[](#установка)

Библиотека доступна через [composer](https://getcomposer.org/)

```
composer require professionalweb/paymentgate-lib "dev-develop"

```

Как использовать без фреймворков
--------------------------------

[](#как-использовать-без-фреймворков)

```
use professionalweb\Paycloud\Models\Product;
use professionalweb\Paycloud\Interfaces\Models\Payment;
use professionalweb\Paycloud\Services\PaycloudProtocol;
use professionalweb\Paycloud\Services\CreatePaymentService;

$protocol = new PaycloudProtocol(
    'https://paycloud.tech/',
    'токен из личного кабинете',
    'секретный ключ из личного кабинета',
    new DataSigner()
);

$paymentService = new CreatePaymentService($protocol);
$paymentUrl = $paymentService
        ->setAmount(1)
        ->setCurrency('RUB')
        ->setOrderId('your-order-id')
        ->setPaymentType(Payment::PAYMENT_TYPE_CARD)
        ->setReturnUrl('https://your-web-site.ru')
        ->setLocale('ru')
        ->setEmail('user@mail.ru')
        ->setProducts([
            new Product('ваш id продукта', 'название', 1)
        ])
        ->getPaymentLink();

// переадресовать пользователя на $paymentUrl
```

Laravel
=======

[](#laravel)

Необходимо добавить настройки. Файл *paycloud.php*.

```
return [
    'token'  => 'generated-token-from-cp',
    'secret' => 'generated-secret-from-cp',
];
```

```
use use professionalweb\Paycloud\Interfaces\PaycloudService;

/** @var PaycloudService $paymentService */
$paymentService = app(PaycloudService::class);
$url = $paymentService->payments()
        ->setAmount(1)
        ->setCurrency('RUB')
        ->setOrderId('your-order-id')
        ->setPaymentType(Payment::PAYMENT_TYPE_CARD)
        ->setReturnUrl('https://your-web-site.ru')
        ->setLocale('ru')
        ->setEmail('user@mail.ru')
        ->setProducts([
            new Product('ваш id продукта', 'название', 1)
        ])
        ->getPaymentLink();

return redirect()->to($url);
```

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity27

Early-stage or recently created project

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/1365ec6405d0ae656f92345bbe388afc34a12a19c3ab0c9ff909b5d4ea3d83a0?d=identicon)[SergioMadness](/maintainers/SergioMadness)

### Embed Badge

![Health badge](/badges/professionalweb-paymentgate-lib/health.svg)

```
[![Health](https://phpackages.com/badges/professionalweb-paymentgate-lib/health.svg)](https://phpackages.com/packages/professionalweb-paymentgate-lib)
```

###  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)
