PHPackages                             chainberry/external-sdk-php - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. chainberry/external-sdk-php

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

chainberry/external-sdk-php
===========================

Chainberry PHP SDK

2.0.5(2mo ago)075↓100%unlicensePHPPHP ^8.1

Since Sep 16Pushed 2mo agoCompare

[ Source](https://github.com/Chainberry-com/externalSDK-php)[ Packagist](https://packagist.org/packages/chainberry/external-sdk-php)[ Docs](https://chainberry.com)[ RSS](/packages/chainberry-external-sdk-php/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (4)Versions (11)Used By (0)

Chainberry SDK
==============

[](#chainberry-sdk)

For full details on how to use the ChainBerry SDK, check out the official documentation here: . Please note that the docs are still a work in progress, and we're actively updating them - so feel free to reach out at  if something's missing or unclear!

Overview
--------

[](#overview)

This PHP SDK provides easy integration with the Chainberry API for deposits, crypto operations, and other API features. It includes both low-level API access and a high-level BerrySdk wrapper for simplified usage.

Features
--------

[](#features)

- **API Setup &amp; Configuration**: Easy initialization with environment variables or configuration arrays
- **Deposit Management**: Create and retrieve deposits with automatic signature generation
- **Crypto Operations**: Sign payloads and verify signatures using RSA-SHA256
- **Dual API Coverage**: Target both legacy V1 and modern V2 endpoints from one SDK
- **Error Handling**: Comprehensive error classes for different types of errors
- **Retry Logic**: Built-in retry mechanisms with exponential backoff
- **Validation**: Input validation with customizable rules
- **Logging**: Configurable logging system
- **OAuth Authentication**: Automatic OAuth token management

Installation &amp; Usage
------------------------

[](#installation--usage)

### Requirements

[](#requirements)

PHP 8.1 and later.

### Composer

[](#composer)

To install the bindings via [Composer](https://getcomposer.org/), add the following to `composer.json`:

```
{
  "minimum-stability": "dev",
  "prefer-stable": true,
  "require": {
    "chainberry/external-sdk-php": "dev-main"
  }
}
```

Then run `composer install`

### Manual Installation

[](#manual-installation)

Download the files and include `autoload.php`:

```
