PHPackages                             spezia/crypto-api-processor - 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. [Payment Processing](/categories/payments)
4. /
5. spezia/crypto-api-processor

ActiveLibrary[Payment Processing](/categories/payments)

spezia/crypto-api-processor
===========================

This package is an unofficial integration of the BlockBee cryptocurrency payment gateway for Laravel applications.

1.1.2(1y ago)06MITPHPPHP &gt;=8.2

Since Dec 26Pushed 1y ago1 watchersCompare

[ Source](https://github.com/spezia/crypto-api-processor)[ Packagist](https://packagist.org/packages/spezia/crypto-api-processor)[ RSS](/packages/spezia-crypto-api-processor/feed)WikiDiscussions main Synced 1mo ago

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

Laravel Blockbee Crypto API Processor
=====================================

[](#laravel-blockbee-crypto-api-processor)

**Introduction**
----------------

[](#introduction)

This package is an unofficial integration of the [Blockbee](https://blockbee.io/) cryptocurrency payment gateway for [Laravel](https://laravel.com/) applications.

This version of the package does not cover all Blockbee API endpoints. It supports only the most important features. To explore all API endpoints, refer to the [Blockbee Documentation](https://docs.blockbee.io/).

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

[](#installation)

Use Composer to install the package.

```
composer require spezia/crypto-api-processor
```

If you don't use auto-discovery, add the **CryptoApiProcessorServiceProvider** to the `providers` list in `config/app.php`.

```
'providers' => [
    ...
    Spezia\CryptoApiProcessor\Providers\CryptoApiProcessorServiceProvider::class,
],

```

The package includes a configuration file. Publish it with the following command:

```
php artisan vendor:publish --tag=blockbee-config

```

To integrate Blockbee into a Laravel app, you need to open Blockbee account and fetch API key. Add this key to your `.env` file.

```
BLOCKBEE_API_KEY=example

```

Usage
-----

[](#usage)

```
use Spezia\CryptoApiProcessor\CryptoApiAdapter;

$blockBeeAdapter = new CryptoApiAdapter();
```

You can take advantage of helper methods via the included trait:

```
use Spezia\CryptoApiProcessor\Helpers\CryptoApiAdapterHelper;
```

Please open both files to see available methods.

Examples
--------

[](#examples)

Here are a couple of examples of how to use the **CryptoApiAdapter**. You can copy this code into your Laravel controller and test it.

```
