Download the PHP package denpa/php-bitcoinrpc without Composer

On this page you can find all versions of the php package denpa/php-bitcoinrpc. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package php-bitcoinrpc

Simple Bitcoin JSON-RPC client based on GuzzleHttp

Latest Stable Version License ci Code Climate Code Coverage

Installation

Run in your project directory or add following lines to composer.json

and run .

Requirements

PHP 8.0 or higher
For PHP 5.6 to 7.0 use php-bitcoinrpc v2.0.x.
For PHP 7.0 to 7.4 use php-bitcoinrpc v2.0.x.

Usage

Create new object with url as parameter

or use array to define your bitcoind settings

Then call methods defined in Bitcoin Core API Documentation with magic:

To send asynchronous request, add Async to method name:

You can also send requests using request method:

or requestAsync method for asynchronous calls:

Multi-Wallet RPC

You can use wallet($name) function to do a Multi-Wallet RPC call:

Exceptions

Helpers

Package provides following helpers to assist with value handling.

to_bitcoin()

Converts value in satoshi to bitcoin.

to_satoshi()

Converts value in bitcoin to satoshi.

to_ubtc()

Converts value in bitcoin to ubtc/bits.

to_mbtc()

Converts value in bitcoin to mbtc.

to_fixed()

Trims float value to precision without rounding.

License

This product is distributed under MIT license.

Donations

If you like this project, please consider donating:
BTC: 3L6dqSBNgdpZan78KJtzoXEk9DN3sgEQJu
Bech32: bc1qyj8v6l70c4mjgq7hujywlg6le09kx09nq8d350

❤Thanks for your support!❤


All versions of php-bitcoinrpc with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
guzzlehttp/guzzle Version ^7.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package denpa/php-bitcoinrpc contains the following files

Loading the files please wait ....