PHPackages                             and/liqpay-api - 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. and/liqpay-api

ActiveLibrary[API Development](/categories/api)

and/liqpay-api
==============

LiqPay API

22.4kPHP

Since Oct 12Pushed 12y ago2 watchersCompare

[ Source](https://github.com/logical-and/liqpay-api)[ Packagist](https://packagist.org/packages/and/liqpay-api)[ RSS](/packages/and-liqpay-api/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

LiqPay API extension with Packagist compatibiluty
=================================================

[](#liqpay-api-extension-with-packagist-compatibiluty)

```
try
		{
			$api = $this->getAPI();
			$xml = $api->getPaymentForCallback($request->request->all());

			switch ($xml->status)
			{
				case 'success':
					$this->updateInvoice($xml->order_id, InvoiceDetail::STATUS_PAID);
					break;

				case 'wait_secure':
					$this->updateInvoice($xml->order_id, InvoiceDetail::STATUS_PROCESSING);
					break;

				default:
					$this->updateInvoice($xml->order_id, InvoiceDetail::STATUS_FAILURE);
			}

		} catch (\ErrorException $e)
		{
			/** @noinspection PhpUndefinedVariableInspection */
			$xml = $api->lastXml;
			switch ($e->getCode())
			{
				case API::ERROR_BAD_REQUEST:
					throw new NotFoundHttpException();

				case API::ERROR_SIGNATURE_MISMATCH:
					if ($xml->order_id)
					{
						$this->getLogger()->warn('Signature mismatch for OrderDetail#id ' . $xml->order_id);
					}
					throw new BadRequestHttpException($e->getMessage());

				default:
					throw $e;
			}
		}
```

```
$fields = $this->getAPI()->getFieldsForPayment(
	100,
	API::CURRENCY_USD,
	$redirect,
	$callback,
	$orderDetail->getId(),
	'Perevod polzovately "' . $orderDetail->getUserToPay()->getEmail() . '" ot polzovatelya "' . $orderDetail->getInvoice()->getUser()->getEmail() . '"',
	API::PAYWAY_LIQPAY | API::PAYWAY_CARD
)
```

```
$api->sendToPhone('ORDER_1', '380661234567', '10', 'UAH', 'Payment description');
$balance = $api->viewBalance();
```

Based on

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

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/0499fdd6338e1520be3ab6776948652c429291c08b79504a2eec2315d73787ab?d=identicon)[And](/maintainers/And)

### Embed Badge

![Health badge](/badges/and-liqpay-api/health.svg)

```
[![Health](https://phpackages.com/badges/and-liqpay-api/health.svg)](https://phpackages.com/packages/and-liqpay-api)
```

###  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)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

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

PHP wrapper for the Meilisearch API

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

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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