denpa / laravel-bitcoinrpc
Bitcoin JSON-RPC Service Provider for Laravel
Installs: 44 033
Dependents: 0
Suggesters: 0
Security: 0
Stars: 90
Watchers: 8
Forks: 39
Open Issues: 5
Requires
- php: >=8.0
- denpa/php-bitcoinrpc: >=2.2 <2.3
Requires (Dev)
- orchestra/testbench: 7.x
Suggests
- denpa/laravel-zeromq: Required to subscribe to zeromq broadcasts.
README
About
This package allows you to make JSON-RPC calls to Bitcoin Core JSON-RPC server from your laravel project. It's based on denpa/php-bitcoinrpc project - fully unit-tested Bitcoin JSON-RPC client powered by GuzzleHttp.
Quick Installation
- Install package:
composer require denpa/laravel-bitcoinrpc "^1.3"
- Publish config file
php artisan vendor:publish --provider="Denpa\Bitcoin\Providers\ServiceProvider"
Visit Installation for detailed installation guide.
Usage
This package provides simple and intuitive API to make RPC calls to Bitcoin Core (and some altcoins)
$hash = '000000000001caba23d5a17d5941f0c451c4ac221cbaa6c60f27502f53f87f68'; $block = bitcoind()->getBlock($hash); dd($block->get());
Check Usage for more information and examples.
Documentation
Documentation is available here.
Requirements
- PHP 8.0 or higher
- Laravel 9.0 or higher
For PHP 5.6 to 7.0 use laravel-bitcoinrpc v1.2.8.
For PHP 7.0 to 7.4 use laravel-bitcoinrpc v1.2.11.
License
This product is distributed under the MIT license.
Donations
If you like this project, please consider donating:
BTC: 3L6dqSBNgdpZan78KJtzoXEk9DN3sgEQJu
Bech32: bc1qyj8v6l70c4mjgq7hujywlg6le09kx09nq8d350
❤Thanks for your support!❤