PHPackages                             gupta/blockchain - 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. gupta/blockchain

ActiveLibrary[API Development](/categories/api)

gupta/blockchain
================

Laravel packeg for Blockchain.info API

08PHP

Since Apr 26Pushed 8y agoCompare

[ Source](https://github.com/Kuntal1230/blockchain-api)[ Packagist](https://packagist.org/packages/gupta/blockchain)[ RSS](/packages/gupta-blockchain/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel-blockchain-api
======================

[](#laravel-blockchain-api)

This is a laravel package for interacting with blockchain api

laravel-blockchain
==================

[](#laravel-blockchain)

> A Laravel 5 Package for working with blockchain api

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

[](#installation)

[PHP](https://php.net) 5.4+ or [HHVM](http://hhvm.com) 3.3+, and [Composer](https://getcomposer.org) are required.

To get the latest version of blockchain api, simply run the code below in your project.

```
"composer require gupta/blockchain"

```

Once Laravel Blockchain is installed, You need to register the service provider. Open up `config/app.php` and add the following to the `providers` key.

- `Gupta\Blockchain\BlockchainServiceProvider::class,`

Also, register the Facade like so:

```
'aliases' => [
    ...
    'Blockchain' => Gupta\Blockchain\Facades\Blockchain::class,,
    ...
]
```

Configuration
-------------

[](#configuration)

You can publish the configuration file using this command:

```
php artisan vendor:publish --provider="Gupta\Blockchain\BlockchainServiceProvider"
```

A configuration-file named `blockchain.php` with default settings will be placed in your `config` directory:

You can visit this link to get your blockchain api

```
https://api.blockchain.info/customer/signup

```

Usage
-----

[](#usage)

Open your .env file and add the following in this format. Ensure you must have gotten your api key:

```
BLOCKCHAIN_API=***********************
DEFAULT_BTC_FEE=0.0001
TRANSACTION_BTC_FEE=0.000
```

USING /Gupta/BLOCKCHAIN PACKAGE
-------------------------------

[](#using-guptablockchain-package)

```
Add the following line to your controller

use Blockchain

```

1. GET RATES
------------

[](#1-get-rates)

```
Blockchain::getRates();
```

2. CONVERT A CURRENCY VALUE TO BTC
----------------------------------

[](#2-convert-a-currency-value-to-btc)

```
$rates = Blockchain::convertCurrencyToBTC('NGN'  600000);
```

3. GET STATISTICS CHART
-----------------------

[](#3-get-statistics-chart)

```
$rates = Blockchain::getStats();
```

4. CREATE WALLET
----------------

[](#4-create-wallet)

```
$wallet = Blockchain::createWallet($wallet_password);
```

5. WALLET BALANCE
-----------------

[](#5-wallet-balance)

```
$wallet = Blockchain::getWalletBalance($wallet_guid, $wallet_password);
```

6. Making Outgoing Payment
--------------------------

[](#6-making-outgoing-payment)

```
$wallet = Blockchain::makeOutgoingPayment($wallet_guid, $amount, $wallet_password, $to_guid);
```

7. List Address
---------------

[](#7-list-address)

```
$wallet = Blockchain::listAddress($wallet_guid, $wallet_password);
```

8. Create New Address
---------------------

[](#8-create-new-address)

```
$wallet = Blockchain::createNewAddress($wallet_guid, $wallet_password, $label ='');
```

Credit
------

[](#credit)

Readme document was inpsired and tuned from one of @Unicodedeveloper. Prosper Otemuyiwa.

Contributing
------------

[](#contributing)

Please feel free to fork this package and contribute by submitting a pull request to enhance the functionalities.

Thanks! maxtee

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/4796f61e48b027413ca1d92067fa3f65d60ebb47f45bbf9f82d700b32d6fe509?d=identicon)[kuntal1230](/maintainers/kuntal1230)

### Embed Badge

![Health badge](/badges/gupta-blockchain/health.svg)

```
[![Health](https://phpackages.com/badges/gupta-blockchain/health.svg)](https://phpackages.com/packages/gupta-blockchain)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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