PHPackages                             pify-libs/wallet-api-client - 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. pify-libs/wallet-api-client

ActiveLibrary[API Development](/categories/api)

pify-libs/wallet-api-client
===========================

PHP client for Pify.cc Wallet API - управление кошельками, переводами и историей операций

01PHP

Since Nov 7Pushed 6mo agoCompare

[ Source](https://github.com/pify-libs/wallet-api-client)[ Packagist](https://packagist.org/packages/pify-libs/wallet-api-client)[ RSS](/packages/pify-libs-wallet-api-client/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Wallet API Client for pify.cc
=============================

[](#wallet-api-client-for-pifycc)

[![Latest Version](https://camo.githubusercontent.com/a79f7096825710080884d47711b2d64bd324bbc9bc403f695d787d04138d9b9c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f706966792f77616c6c65742d6170692d636c69656e742e737667)](https://packagist.org/packages/pify/wallet-api-client)[![PHP Version](https://camo.githubusercontent.com/73736f6e1b303abcb0410823379b0c70266556b8c73214654383eca4b9e48b40/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f706966792f77616c6c65742d6170692d636c69656e74)](https://packagist.org/packages/pify/wallet-api-client)[![License](https://camo.githubusercontent.com/cdcec27ab5e775b17380a5b00e6e752949daa5006696c1fd17f0d26919afde4b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f706966792f77616c6c65742d6170692d636c69656e742e737667)](https://packagist.org/packages/pify/wallet-api-client)

PHP client for interacting with Pify.cc Wallet API.

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

[](#installation)

You can install the package via Composer:

bash
----

[](#bash)

composer require pify/wallet-api-client

Usage
-----

[](#usage)

```
require_once 'vendor/autoload.php';

use Pify\WalletApiClient\WalletApiClient;

$apiToken = 'your_api_token_here';
$client = new WalletApiClient($apiToken);
// Get balance
$balance = $client->getBalance();
if ($balance) {
    print_r($balance);
} else {
    echo "Error: " . $client->getLastError() . "\n";
}

// More examples in the documentation below.

```

API Methods
-----------

[](#api-methods)

```
php
$result = $client->getBalance();

```

Get Transaction History

```
php
// All user history
$result = $client->getHistory();
// Specific wallet with filters
$result = $client->getHistory([
    'wallet_id' => 123,
    'page' => 1,
    'page_size' => 50,
    'filters' => [
        'operation_type' => 'deposit',
        'date_from' => '2024-01-01'
    ]
]);

```

Internal Transfer

```
$result = $client->transfer(
    $fromWalletId = 123,
    $toIdentifier = 'W12345ABC', // wallet ID or address
    $amount = 100.50,
    $comment = 'Payment for services'
);
```

External Transfer

```
php
$result = $client->transferExternal(
    $fromWalletId = 123,
    $toAddress = 'TXYZ123...', // external crypto address
    $amount = 50.0,
    $comment = 'Withdrawal'
);

```

Check Transfer Possibility

```
php
$result = $client->checkTransfer(123, 100.0);
if ($result && $result['data']['can_transfer']) {
    echo "Transfer is possible\n";
}

```

Get Statistics

```
php
$result = $client->getStatistics('month'); // day, week, month, year
Get Wallet Info
php
$result = $client->getWalletInfo(123);

```

Error Handling

```
php
$result = $client->getBalance();

if (!$result) {
    $error = $client->getLastError();
    $response = $client->getLastResponse();

    echo "Error: {$error}\n";
    echo "HTTP Code: {$response['http_code']}\n";

    // Log error
    error_log("Wallet API Error: {$error}");
}

```

Configuration
-------------

[](#configuration)

Custom Base URL

```
php
$client->setBaseUrl('https://api.pify.cc');
Custom Timeout
php
$client->setTimeout(60); // 60 seconds

```

Requirements PHP 7.4 or higher

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance47

Moderate activity, may be stable

Popularity1

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity13

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/7aec8eaed7cf4706203c60b3c7f1d5cbc103d3f49dde0e4db2f171083afa36c5?d=identicon)[pify-libs](/maintainers/pify-libs)

---

Top Contributors

[![pify-libs](https://avatars.githubusercontent.com/u/242614580?v=4)](https://github.com/pify-libs "pify-libs (6 commits)")

### Embed Badge

![Health badge](/badges/pify-libs-wallet-api-client/health.svg)

```
[![Health](https://phpackages.com/badges/pify-libs-wallet-api-client/health.svg)](https://phpackages.com/packages/pify-libs-wallet-api-client)
```

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