PHPackages                             phabloraylan/coinpayments-php-sdk - 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. phabloraylan/coinpayments-php-sdk

ActiveLibrary[API Development](/categories/api)

phabloraylan/coinpayments-php-sdk
=================================

A PHP wrapper for the CoinPayments.net v1 API.

1.0.1(6y ago)020MITPHPPHP &gt;=5.5.0

Since Sep 3Pushed 6y ago1 watchersCompare

[ Source](https://github.com/phabloraylan/coinpayments-php-sdk)[ Packagist](https://packagist.org/packages/phabloraylan/coinpayments-php-sdk)[ Docs](https://www.coinpayments.net/apidoc-intro)[ RSS](/packages/phabloraylan-coinpayments-php-sdk/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

\#Coinpayments PHP SDK

> Biblioteca para se conectar com

Futuramente adicionaremos outras funções.

Instalação
----------

[](#instalação)

Via composer:

```
composer require phabloraylan/coinpayments-php
```

Usando
------

[](#usando)

Inclua o autoload em seu projeto, exemplo:

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

Criando uma simples transação

```
/** Scenario: Create a simple transaction. **/

// Create a new API wrapper instance
$private_key= "";
$public_key = "";
$cps_api = new \Coinpayments\CoinpaymentsAPI($private_key, $public_key, 'json');

// Make call to API to create the transaction
try {

    $fields = [
        'amount' => 100.00,
        'currency1' => 'BRL',
        'currency2' => 'LTCT',
        'buyer_email' => 'phabloraylan@gmail.com'
    ];
    $transaction_response = $cps_api->CreateCustomTransaction($fields);
} catch (\Exception $e) {
    echo 'Error: ' . $e->getMessage();
    exit();
}

if ($transaction_response['error'] == 'ok') {
    // Success!
    $output = 'Transaction created with ID: ' . $transaction_response['result']['txn_id'] . '';
    $output .= 'Amount for buyer to send: ' . $transaction_response['result']['amount'] . '';
    $output .= 'Address for buyer to send to: ' . $transaction_response['result']['address'] . '';
    $output .= 'Seller can view status here: ' . $transaction_response['result']['status_url'];

} else {
    // Something went wrong!
    $output = 'Error: ' . $transaction_response['error'];
}

// Output the response of the API call
echo $output;
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 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 ~0 days

Total

2

Last Release

2440d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6d083bcdbf5d842afa893f765778378c29ac15c0b9cc829fc7cd66bdf763aa1e?d=identicon)[phabloraylan](/maintainers/phabloraylan)

---

Top Contributors

[![phabloraylan](https://avatars.githubusercontent.com/u/21280189?v=4)](https://github.com/phabloraylan "phabloraylan (5 commits)")

---

Tags

phpapicurrencycryptopaypalbitcoinbtcmerchantlitecoincryptocurrencypayment gatewayethereumpayment methodcoinpaymentspayment processor

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/phabloraylan-coinpayments-php-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/phabloraylan-coinpayments-php-sdk/health.svg)](https://phpackages.com/packages/phabloraylan-coinpayments-php-sdk)
```

###  Alternatives

[coinpaymentsnet/coinpayments-php

A PHP wrapper for the CoinPayments.net v1 API.

55126.2k](/packages/coinpaymentsnet-coinpayments-php)[ccxt/ccxt

A cryptocurrency trading API with more than 100 exchanges in JavaScript / TypeScript / Python / C# / PHP / Go

41.5k328.9k1](/packages/ccxt-ccxt)[kornrunner/ccxt

A PHP cryptocurrency trading library with support for more than 90 bitcoin/altcoin exchanges

371.6k](/packages/kornrunner-ccxt)

PHPackages © 2026

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