PHPackages                             bert-w/coinpayments-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. bert-w/coinpayments-api

ActiveLibrary[API Development](/categories/api)

bert-w/coinpayments-api
=======================

A PHP implementation for the CoinPayments API

v1.0.1(3y ago)0533MITPHPPHP ^7.2|^8.0

Since Mar 7Pushed 3y ago1 watchersCompare

[ Source](https://github.com/bert-w/coinpayments-api)[ Packagist](https://packagist.org/packages/bert-w/coinpayments-api)[ RSS](/packages/bert-w-coinpayments-api/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (1)Versions (8)Used By (0)

bert-w/coinpayments-api
=======================

[](#bert-wcoinpayments-api)

[![Latest Stable Version](https://camo.githubusercontent.com/62dc1b7540a81791f2132a3a5f18017e511a7701106e53245145fb4961ea10aa/68747470733a2f2f706f7365722e707567782e6f72672f626572742d772f636f696e7061796d656e74732d6170692f762f737461626c65)](https://packagist.org/packages/bert-w/coinpayments-api)[![Total Downloads](https://camo.githubusercontent.com/be2527d39ca5a132a8ada9ad54c406969dee7d2eba390db9210c188026162f0a/68747470733a2f2f706f7365722e707567782e6f72672f626572742d772f636f696e7061796d656e74732d6170692f646f776e6c6f616473)](https://packagist.org/packages/bert-w/coinpayments-api)[![License](https://camo.githubusercontent.com/50450dd650484f75d9609a6a98db10940efe845ed074544a2c90bbd5050e5a5b/68747470733a2f2f706f7365722e707567782e6f72672f626572742d772f636f696e7061796d656e74732d6170692f6c6963656e7365)](https://packagist.org/packages/bert-w/coinpayments-api)

A PHP implementation of the CoinPayments API.

### Installation instructions

[](#installation-instructions)

`composer require bert-w/coinpayments-api`

### Quick start

[](#quick-start)

See [CoinPayments API Doc](https://www.coinpayments.net/apidoc) for the CoinPayments API documentation.

##### Code Samples

[](#code-samples)

###### Retrieving basic merchant info

[](#retrieving-basic-merchant-info)

```
$publicKey = 'your_public_api_key';
$privateKey = 'your_private_api_key';

$client = new BertW\CoinPaymentsApi\Client($publicKey, $privateKey);

$response = $client->getBasicInfo();

print_r($response);
// Array
// (
//     [error] => ok
//     [result] => Array
//         (
//             [username] => MerchantUsername
//             [merchant_id] => abcd32abcd32abcd32abcd32abcd32ab
//             [email] => merchantemail@example.com
//             [public_name] =>
//             [time_joined] => 1518095700
//         )
//
// )

```

### Quick API Reference

[](#quick-api-reference)

Creating a transaction is easy:

```
$client->createTransaction([
    'amount' => 0.452811,
    'currency1' => 'USD',
    'currency2' => 'BTC',
    // optional parameters here...

```

API requests with more than 4 parameters use an associative array syntax like above (all functions with `array $options`). Simple API calls like `getDepositAddress`, can simply be called using `$client->getDepositAddress($currency)`.

#### Function List

[](#function-list)

```
public function getBasicInfo();
public function rates($short = null, $accepted = null);
public function balances($all = 0);
public function getDepositAddress($currency);
public function createTransaction(array $options);
public function getCallbackAddress($currency, $ipn_url = null);
public function getTxInfoMulti($txid);
public function getTxInfo($txid, $full = null);
public function getTxIds($limit = null, $start = null, $newer = null, $all = null);
public function createTransfer(array $options);
public function createWithdrawal(array $options);
public function createMassWithdrawal(array $options);
public function convert(array $options);
public function getWithdrawalHistory($limit = null, $start = null, $newer = null);
public function getWithdrawalInfo($id);
public function getConversionInfo($id);
public function getPbnInfo($pbntag);
public function getPbnList();
public function updatePbnTag(array $options);
public function claimPbnTag($tagid, $name);

```

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity73

Established project with proven stability

 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.

###  Release Activity

Cadence

Every ~330 days

Recently: every ~412 days

Total

6

Last Release

1343d ago

Major Versions

v0.4 → v1.0.02022-04-24

PHP version history (2 changes)v1.0.0PHP ^7.2.5 || ^8.0

v1.0.1PHP ^7.2|^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/10498595?v=4)[Bert](/maintainers/bert-w)[@bert-w](https://github.com/bert-w)

---

Top Contributors

[![bert-w](https://avatars.githubusercontent.com/u/10498595?v=4)](https://github.com/bert-w "bert-w (20 commits)")

### Embed Badge

![Health badge](/badges/bert-w-coinpayments-api/health.svg)

```
[![Health](https://phpackages.com/badges/bert-w-coinpayments-api/health.svg)](https://phpackages.com/packages/bert-w-coinpayments-api)
```

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

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