PHPackages                             freddiecoleman/luxstack-razrbit - 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. freddiecoleman/luxstack-razrbit

ActiveLibrary

freddiecoleman/luxstack-razrbit
===============================

Build, test and scale bitcoin apps faster with Razrbit

1.1.0(11y ago)8813MITPHPPHP &gt;=5.4.0

Since Sep 20Pushed 11y ago2 watchersCompare

[ Source](https://github.com/freddiecoleman/luxstack-razrbit)[ Packagist](https://packagist.org/packages/freddiecoleman/luxstack-razrbit)[ RSS](/packages/freddiecoleman-luxstack-razrbit/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

Luxstack Razrbit SDK for PHP (Beta)
===================================

[](#luxstack-razrbit-sdk-for-php-beta)

This package contains the Luxstack Razrbit Bitcoin platform - allowing you to build, test and scale bitcoin apps faster.

I did not create the Razrbit Bitcoin Platform, it is built by Luxstack. I have simply written some automated tests for it and added some extra Laravel support.

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

[](#installation)

Begin by installing this package through Composer.

```
{
    "require": {
		"freddiecoleman/luxstack-razrbit": "1.1.0"
	}
}
```

API Key
-------

[](#api-key)

In order to use this package you will need to set the following constants containing your Luxstack App ID and secret.

```
CONST MY_APP_ID     = "A25AOpLUoT";
CONST MY_APP_SECRET = "688e2b77-09a3-4945-9468-bf188ff3de88";
```

Laravel Users
-------------

[](#laravel-users)

If you are a Laravel user there is a service provider that you can make use of.

```
// app/config/app.php

'providers' => [
    '...',
    'Luxstack\Razrbit\RazrbitServiceProvider'
];
```

When this provider is booted, you'll have access to a helpful `Razrbit` facade, which you may use in your controllers.

```
Route::get('/', function()
{
	return Razrbit::marketsPrice('USD');
});
```

Non-Laravel users
-----------------

[](#non-laravel-users)

If you are not using Laravel you will need to instantiate Razrbit manually yourself.

```
$razrbit = new Razrbit(MY_APP_ID,MY_APP_SECRET);

```

Once this has been done, any available services can be invoked. Response data is accessible in the callback and can be used as needed:

```
$new_address = $razrbit->walletCreateNewAddress();

$balance = $razrbit->getBalanceFromAddress($new_address);

```

API
---

[](#api)

### Wallet

[](#wallet)

```
$razrbit->walletCreateNewAddress();

```

Creates a new bitcoin address

```
razrbit->walletSendAmount("1exampleFromAddressPrivateKey", "1exampleToAddress", 123456);

```

Sends bitcoin from one of your addresses to the destination address. Amount is measured in bits.

```
$razrbit->walletGetBalanceFromAddress($exampleAddress);

```

Returns the balance of the given address in bits.

### Explorer

[](#explorer)

```
$razrbit->explorerBlock($exampleBlock);

```

Retrieve details about a given block

```
$razrbit->explorerTransaction($exampleTransaction);

```

Retrieve details about a given transaction

```
$razrbit->explorerAddress($exampleAddress);

```

Retrieve details about a given address

```
$razrbit->explorerAddressUnspentOutputs($exampleAddress);

```

Returns the list of unspent outputs for a given address

### Network

[](#network)

```
$razrbit->networkGetDifficulty();

```

Retrieve the current network difficulty

```
$razrbit->networkPushTransaction("exampleTransaction");

```

Push a transaction onto the network

### Markets

[](#markets)

`currencyCode` is a valid ISO 4217 code such as `USD` or `EUR`.

```
$razrbit->marketsPrice("USD");

```

Returns the current bitcoin price

```
$razrbit->marketsDayPrice("USD");

```

Returns the day price

```
$razrbit->marketsHistoricalPrice("USD","2014-03-03");

```

Returns the historical price at the given date. `date` must be a date in the `yyyy-mm-dd` format.

### Webhooks

[](#webhooks)

```
$razrbit->notificationAddress($exampleAddress,"example@example.com");

```

Set up a notification email for a given address

```
$razrbit->notificationBlock($blockHash,"example@example.com");

```

Set up a notification email for a given block

```
$razrbit->notificationTransaction($transactionHash,"example@example.com");

```

Set up a notification email for a given transaction

License
=======

[](#license)

**Razrbit code released under [the MIT license](https://github.com/LUXSTACK/razrbit-sdk-php/blob/master/LICENSE).**

Copyright 2012-2014 LUXSTACK Inc. Razrbit is a trademark maintained by LUXSTACK Inc.

Razrbit Bitcoin SDKs for other platforms
========================================

[](#razrbit-bitcoin-sdks-for-other-platforms)

- [Android](https://github.com/LUXSTACK/razrbit-sdk-android)
- [iOS](https://github.com/LUXSTACK/razrbit-sdk-ios)
- [Javascript](https://github.com/LUXSTACK/razrbit-sdk-javascript)
- PHP
- [Ruby](https://github.com/LUXSTACK/razrbit-sdk-ruby)

### Package author

[](#package-author)

This package was made by [Freddie Coleman](http://www.freddiecoleman.com)

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

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

Every ~4 days

Total

2

Last Release

4244d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2ddaaccabb9251c18074b7a94dececec7ad67f6c4140a3dd80b4a2628123e776?d=identicon)[freddiecoleman](/maintainers/freddiecoleman)

---

Top Contributors

[![freddiecoleman](https://avatars.githubusercontent.com/u/4749434?v=4)](https://github.com/freddiecoleman "freddiecoleman (40 commits)")[![jonwaller](https://avatars.githubusercontent.com/u/937060?v=4)](https://github.com/jonwaller "jonwaller (2 commits)")

---

Tags

phpbitcoin

### Embed Badge

![Health badge](/badges/freddiecoleman-luxstack-razrbit/health.svg)

```
[![Health](https://phpackages.com/badges/freddiecoleman-luxstack-razrbit/health.svg)](https://phpackages.com/packages/freddiecoleman-luxstack-razrbit)
```

###  Alternatives

[bitwasp/secp256k1-php

PHP Extension with bindings for bitcoin/secp256k1.

58185.7k35](/packages/bitwasp-secp256k1-php)[bitwasp/bitcoin-lib

Implementation of raw transactions in bitcoin, HD wallets, Electrum wallets, and other fun stuff.

13922.3k5](/packages/bitwasp-bitcoin-lib)[coinpaymentsnet/coinpayments-php

A PHP wrapper for the CoinPayments.net v1 API.

55126.2k](/packages/coinpaymentsnet-coinpayments-php)

PHPackages © 2026

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