PHPackages                             xpay-crypting/crypting - 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. [API Development](/categories/api)
4. /
5. xpay-crypting/crypting

ActiveLibrary[API Development](/categories/api)

xpay-crypting/crypting
======================

Simplify work with xpay api

04.9kPHP

Since Jun 30Pushed 4y ago1 watchersCompare

[ Source](https://github.com/shmakov-xpay/xpay-crypting)[ Packagist](https://packagist.org/packages/xpay-crypting/crypting)[ RSS](/packages/xpay-crypting-crypting/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Library for Xpay
================

[](#library-for-xpay)

This library aims to perform cryptographic operations for interaction with [XPay](https://xpay.com.ua/).

```
composer require xpay-crypting/crypting

```

### Key generation

[](#key-generation)

This command will create 2 files in a current directory. Send a public key to XPayua. **Never share the private-key**.

```
./bin/generate-keys

```

### Usage

[](#usage)

```
$privateKey = ''; // your private key
$publicKey = ''; // key that you've got from XPayua
$manager = new CryptManager($privateKey, $publicKey);

$requestData = ['ID' => ''];

$partner = [
    'PartnerToken' => 'TOKEN', // that you've got from XPayua
    'OperationType' => 12345, // integer id of operation
];

$data = [
      'Partner' => $partner,
      'Data' => $cryptManager->encrypt($requestData),
      'KeyAES' => $cryptManager->getEncryptedAESKey(),
      'Sign' => $cryptManager->getSignedKey(),
];
```

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity29

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/bf13bf9f7e99a80e3ef2a9188aa55c5dcbc7fa983bd87fb90f2ac3a2b993e4f8?d=identicon)[shmakov-xpay](/maintainers/shmakov-xpay)

---

Top Contributors

[![titanaruto](https://avatars.githubusercontent.com/u/8255403?v=4)](https://github.com/titanaruto "titanaruto (12 commits)")

### Embed Badge

![Health badge](/badges/xpay-crypting-crypting/health.svg)

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[facebook/php-business-sdk

PHP SDK for Facebook Business

90821.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

74513.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

265103.1M454](/packages/google-gax)[google/common-protos

Google API Common Protos for PHP

173103.7M50](/packages/google-common-protos)

PHPackages © 2026

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