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

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

maxtee/blockchain
=================

This is a package designed to integrate with laravel 5.0+

571.2k26[3 issues](https://github.com/maxteebabs/Laravel-blockchain-api/issues)PHP

Since Mar 14Pushed 7y ago7 watchersCompare

[ Source](https://github.com/maxteebabs/Laravel-blockchain-api)[ Packagist](https://packagist.org/packages/maxtee/blockchain)[ RSS](/packages/maxtee-blockchain/feed)WikiDiscussions master Synced yesterday

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 maxtee/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.

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

Also, register the Facade like so:

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

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

[](#configuration)

You can publish the configuration file using this command:

```
php artisan vendor:publish --provider="Maxtee\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 /MAXTEE/BLOCKCHAIN PACKAGE
--------------------------------

[](#using-maxteeblockchain-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.

How can I thank you?
--------------------

[](#how-can-i-thank-you)

Why not star the github repo? I'd love the attention! Why not share the link for this repository on Twitter or HackerNews? Spread the word!

Don't forget to [follow me on twitter](https://twitter.com/taiwomix)!

Thanks! Famurewa Taiwo

License
-------

[](#license)

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

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity30

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 Bus Factor1

Top contributor holds 87.5% 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.

### Community

Maintainers

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

---

Top Contributors

[![maxteebabs](https://avatars.githubusercontent.com/u/11405440?v=4)](https://github.com/maxteebabs "maxteebabs (7 commits)")[![aleks989](https://avatars.githubusercontent.com/u/47993376?v=4)](https://github.com/aleks989 "aleks989 (1 commits)")

### Embed Badge

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

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

PHPackages © 2026

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