PHPackages                             mrbeandev/coinbase-cdp - 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. mrbeandev/coinbase-cdp

ActiveLibrary[API Development](/categories/api)

mrbeandev/coinbase-cdp
======================

Modern PHP client for the Coinbase Developer Platform (CDP) API — supports ES256 JWT auth, accounts, addresses, and transactions.

v1.0.0(3mo ago)03MITPHPPHP &gt;=8.1

Since Apr 11Pushed 3mo agoCompare

[ Source](https://github.com/mrbeandev/coinbase-cdp-php)[ Packagist](https://packagist.org/packages/mrbeandev/coinbase-cdp)[ Docs](https://github.com/mrbeandev/coinbase-cdp-php)[ RSS](/packages/mrbeandev-coinbase-cdp/feed)WikiDiscussions main Synced 3w ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

Coinbase CDP PHP
================

[](#coinbase-cdp-php)

Modern PHP client for the [Coinbase Developer Platform (CDP)](https://www.coinbase.com/developer-platform) API.

Supports ES256 (ECDSA P-256) JWT authentication, the current auth method required by Coinbase since Feb 2025.

Requirements
------------

[](#requirements)

- PHP 8.1+
- OpenSSL extension
- ECDSA API key from [portal.cdp.coinbase.com](https://portal.cdp.coinbase.com)

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

[](#installation)

```
composer require mrbeandev/coinbase-cdp
```

Quick Start
-----------

[](#quick-start)

```
use MrBeanDev\CoinbaseCDP\CoinbaseCDP;

$cb = new CoinbaseCDP(
    orgId:      'your-org-uuid',
    apiKeyId:   'your-api-key-uuid',
    privateKey: file_get_contents('cdp_key.pem'),
);

// List accounts
$accounts = $cb->accounts()->list();

// Get BTC balance
$btc = $cb->accounts()->get('BTC');
echo $btc['data']['balance']['amount'];

// Create a deposit address
$address = $cb->addresses()->create($accountId, 'User deposit');
echo $address['data']['address'];

// Send crypto
$tx = $cb->transactions()->send(
    accountId: $accountId,
    to:        '0xabc123...',
    amount:    '0.01',
    currency:  'ETH',
);

// Poll for incoming deposits
$deposits = $cb->transactions()->confirmedDeposits($accountId);
```

API
---

[](#api)

### Accounts

[](#accounts)

```
$cb->accounts()->list($limit, $startingAfter)   // paginated list
$cb->accounts()->get($idOrCurrency)              // by UUID or "BTC"
$cb->accounts()->getByCurrency('ETH')            // shortcut
$cb->accounts()->all()                           // auto-paginate all
```

### Addresses

[](#addresses)

```
$cb->addresses()->create($accountId, $name, $network)  // new deposit address
$cb->addresses()->list($accountId)                      // list addresses
$cb->addresses()->get($accountId, $addressId)           // single address
$cb->addresses()->transactions($accountId, $addressId)  // txs for address
```

### Transactions

[](#transactions)

```
$cb->transactions()->list($accountId, $limit, $order)           // list all
$cb->transactions()->get($accountId, $txId)                     // single tx
$cb->transactions()->send($accountId, $to, $amount, $currency)  // send crypto
$cb->transactions()->transfer($from, $to, $amount, $currency)   // internal
$cb->transactions()->deposits($accountId, $limit, $status)      // filter receives
$cb->transactions()->confirmedDeposits($accountId)               // completed only
```

Authentication
--------------

[](#authentication)

This library uses ES256 JWT authentication as required by CDP. Each API request generates a fresh JWT signed with your EC private key. No legacy API keys or HMAC auth.

Get your credentials at [portal.cdp.coinbase.com](https://portal.cdp.coinbase.com) — select **ECDSA** key type.

Error Handling
--------------

[](#error-handling)

```
use MrBeanDev\CoinbaseCDP\Exception\CoinbaseException;

try {
    $cb->transactions()->send(...);
} catch (CoinbaseException $e) {
    echo $e->getMessage();       // human-readable error
    print_r($e->getResponseBody()); // raw API response
}
```

License
-------

[](#license)

MIT

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance80

Actively maintained with recent releases

Popularity3

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity43

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

Unknown

Total

1

Last Release

104d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/34623886?v=4)[MrBeanDev](/maintainers/mrbeandev)[@mrbeandev](https://github.com/mrbeandev)

---

Top Contributors

[![mrbeandev](https://avatars.githubusercontent.com/u/34623886?v=4)](https://github.com/mrbeandev "mrbeandev (2 commits)")

---

Tags

phpapicryptobitcoinethereumcoinbaseCDP

### Embed Badge

![Health badge](/badges/mrbeandev-coinbase-cdp/health.svg)

```
[![Health](https://phpackages.com/badges/mrbeandev-coinbase-cdp/health.svg)](https://phpackages.com/packages/mrbeandev-coinbase-cdp)
```

###  Alternatives

[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

293.1k](/packages/eslazarev-wildberries-sdk)[xeroapi/xero-php-oauth2

Xero official PHP SDK for oAuth2 generated with OpenAPI spec 3

1054.7M18](/packages/xeroapi-xero-php-oauth2)[ellaisys/aws-cognito

Laravel Authentication using AWS Cognito (Web and API)

121256.9k1](/packages/ellaisys-aws-cognito)[coinpaymentsnet/coinpayments-php

A PHP wrapper for the CoinPayments.net v1 API.

56130.1k](/packages/coinpaymentsnet-coinpayments-php)[files.com/files-php-sdk

Files.com PHP SDK

2481.1k](/packages/filescom-files-php-sdk)

PHPackages © 2026

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