PHPackages                             kadirov/payme - 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. kadirov/payme

ActiveSymfony-bundle[Payment Processing](/categories/payments)

kadirov/payme
=============

v1.0.8(1y ago)73852GPL-3.0-or-laterPHPPHP 8.2.\*

Since Feb 18Pushed 1y ago1 watchersCompare

[ Source](https://github.com/kadirov/payme)[ Packagist](https://packagist.org/packages/kadirov/payme)[ RSS](/packages/kadirov-payme/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (10)Dependencies (18)Versions (39)Used By (0)

Payme
=====

[](#payme)

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

[](#installation)

### Install the package

[](#install-the-package)

```
composer req kadirov/payme
```

### Add to config/bundles.php

[](#add-to-configbundlesphp)

```
Kadirov\Payme\PaymeBundle::class => ['all' => true],
```

### Create AfterFinishPaymentInterface and BeforeCancelFinishedPayment classes. Add next to config/services.yaml

[](#create-afterfinishpaymentinterface-and-beforecancelfinishedpayment-classes-add-next-to-configservicesyaml)

```
services:
    Kadirov\Payme\Component\Billing\Payment\Payme\Interfaces\BeforeCancelFinishedPaymentInterface:
        class: App\Component\Payme\BeforeCancelFinishedPayment

    Kadirov\Payme\Component\Billing\Payment\Payme\Interfaces\AfterFinishPaymentInterface:
        class: App\Component\Payme\AfterFinishPayment
```

### Add next lines to your .env file

[](#add-next-lines-to-your-env-file)

```
### Payme
PAYME_CASHBOX_ID=""
PAYME_CASHBOX_KEY=""
PAYME_CASHBOX_TEST_ID=Paycom
PAYME_CASHBOX_TEST_KEY=""
PAYME_CHECK_IPS=true
PAYME_IPS="185.234.113.1,185.234.113.2,185.234.113.3,185.234.113.4,185.234.113.5,185.234.113.6,185.234.113.7,185.234.113.8,185.234.113.9,185.234.113.10,185.234.113.11,185.234.113.12,185.234.113.13,185.234.113.14,185.234.113.15"
### Payme
```

### Add payme route to config/packages/security.yaml file

[](#add-payme-route-to-configpackagessecurityyaml-file)

```
security:
    firewalls:
        payme:
            pattern: ^/api/payments/payme
            security: false
            methods:
                - post
```

How to use
----------

[](#how-to-use)

Create PaymeTransaction via createTransaction() method of [PaymeTransactionBuilder](src/Payme/Component/Billing/Payment/Payme/PaymeTransactionBuilder.php). For fiscalization you can also call addItem() method.

### Example of simple using

[](#example-of-simple-using)

```
$paymeTransaction = $paymeTransactionBuilder
            ->createTransaction($price)
            ->getResult();
```

### Example with fiscalization

[](#example-with-fiscalization)

```
$paymeTransaction = $paymeTransactionBuilder
    ->createTransaction($finalPrice)
    ->addItem('10315002001000000', 3, '195815', $consultingPrice, 'Consulting services', 15)
    ->addItem('10305005001000000', 1, '195763', $softwarePrice, 'Software Development', 15)
    ->getResult();
```

When user pays this payment, system will call afterFinishPayment() method of [AfterFinishPaymentInterface](src/Payme/Component/Billing/Payment/Payme/Interfaces/AfterFinishPaymentInterface.php). So, create class which implements AfterFinishPaymentInterface.

Also, you have to implement [BeforeCancelFinishedPaymentInterface](src/Payme/Component/Billing/Payment/Payme/Interfaces/BeforeCancelFinishedPaymentInterface.php). Method in this class will call before cancel a payment. If canceling payment is impossible you can throw [BeforeCancelFinishedPaymentException](src/Payme/Component/Billing/Payment/Payme/Exceptions/BeforeCancelFinishedPaymentException.php).

How to connect your project with Payme
--------------------------------------

[](#how-to-connect-your-project-with-payme)

You should create cashbox on [merchant.payme.uz](https://merchant.payme.uz/). Then copy ID and specify it as value of **PAYME\_CASHBOX\_ID**

[![](docs/img/cashbox.png)](docs/img/cashbox.png)

Enter to the cashbox, click to settings then developer tools where you can find **key** and **test key**. Specify them as values of **PAYME\_CASHBOX\_KEY** and **PAYME\_CASHBOX\_TEST\_KEY**

Also, you have to enter **Endpoint URL** like to

[![](docs/img/keys.png)](docs/img/keys.png)

Click to tab **Payment details** and create **transactionId**

[![](docs/img/transactionId.png)](docs/img/transactionId.png)

Add next form and users can pay by clicking the button
------------------------------------------------------

[](#add-next-form-and-users-can-pay-by-clicking-the-button)

```

    Pay with Payme

```

###  Health Score

40

—

FairBetter than 86% of packages

Maintenance40

Moderate activity, may be stable

Popularity19

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity74

Established project with proven stability

 Bus Factor1

Top contributor holds 88.2% 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 ~29 days

Recently: every ~219 days

Total

38

Last Release

500d ago

Major Versions

v0.3.6 → v1.0.02022-09-19

PHP version history (2 changes)v0.1.0PHP 8.1.\*

v1.0.6PHP 8.2.\*

### Community

Maintainers

![](https://www.gravatar.com/avatar/408a5d91df8a0793bc196756e697a14fde20273d13c4a5e77477e44ec82eb2e2?d=identicon)[kadirov.inc](/maintainers/kadirov.inc)

---

Top Contributors

[![kadirov](https://avatars.githubusercontent.com/u/4341071?v=4)](https://github.com/kadirov "kadirov (45 commits)")[![mfsv0711011](https://avatars.githubusercontent.com/u/121829219?v=4)](https://github.com/mfsv0711011 "mfsv0711011 (5 commits)")[![tuychiyev31](https://avatars.githubusercontent.com/u/111127037?v=4)](https://github.com/tuychiyev31 "tuychiyev31 (1 commits)")

### Embed Badge

![Health badge](/badges/kadirov-payme/health.svg)

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

###  Alternatives

[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1616.4k12](/packages/2lenet-crudit-bundle)[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

1189.8k](/packages/rcsofttech-audit-trail-bundle)[oro/platform

Business Application Platform (BAP)

645143.5k114](/packages/oro-platform)[kimai/kimai

Kimai - Time Tracking

4.8k9.0k1](/packages/kimai-kimai)[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M388](/packages/easycorp-easyadmin-bundle)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

9421.6k61](/packages/open-dxp-opendxp)

PHPackages © 2026

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