Download the PHP package sandrokeil/blockchain-wallet-api without Composer
On this page you can find all versions of the php package sandrokeil/blockchain-wallet-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download sandrokeil/blockchain-wallet-api
More information about sandrokeil/blockchain-wallet-api
Files in sandrokeil/blockchain-wallet-api
Package blockchain-wallet-api
Short Description Zend Framework 2 client library for blockchain wallet api. Configure request, call the service and access the response data via objects.
License BSD-3-Clause
Homepage https://github.com/sandrokeil/BlockchainWalletApi
Informations about the package blockchain-wallet-api
Blockchain Wallet Api module for Zend Framework 2
You want an easy client for the blockchain wallet api?
You want to configure request, call the service and access the response data via objects?
You want to display bitcoin in mBTC or uBTC?
This module comes to the rescue!
Zend Framework 2 client library for blockchain wallet api. The usage is simple. Configure request, call the service and access the response data via objects.
- Adapts To Your Needs. There are several possibilities to configure this module.
- Well tested. Besides unit test and continuous integration/inspection this solution is also ready for production use.
- Great foundations. Based on Zend Framework 2 and Easy Config
- Every change is tracked. Want to know whats new? Take a look at CHANGELOG.md
- Listen to your ideas. Have a great idea? Bring your tested pull request or open a new issue. See CONTRIBUTING.md
Installation
Installation of this module uses composer. For composer documentation, please refer to getcomposer.org.
Put the following into your composer.json
{
"require": {
"sandrokeil/blockchain-wallet-api": "~1.0"
}
}
Then add Sake\BlockchainWalletApi
to your ./config/application.config.php
.
Copy config/blockchainwalletapi.local.php.dist
to config/blockchainwalletapi.local.php
and configure the credentials. Never commit this file to public repositories!
Documentation
Please refer to blockchain wallet api documentation for request details.
These request classes matches to api methods
- Send => payment
- SendMany => sendmany
- WalletBalance => balance
- ListAddresses => list
- AddressBalance => address_balance
- NewAddress => new_address
- AddressArchive => archive_address
- AddressUnarchive => unarchive_address
- AutoConsolidateAddresses => auto_consolidate
Configuration
Connection parameters can be defined in the application configuration:
Registered service names
sake_bwa.service.default
: a \Sake\BlockchainWalletApi\Service\BlockchainWallet instance to send requests to the apisake_bwa.service.response
: a \Sake\BlockchainWalletApi\Service\ResponsePluginManager Service plugin manager to create responses via api method namesake_bwa.service.request
: a \Sake\BlockchainWalletApi\Service\RequestPluginManager Service plugin manager to create requests via api method namesake_bwa.service.input_filter
: a \Sake\BlockchainWalletApi\Service\InputFilterPluginManager Service plugin manager to create input filter via api method namesake_bwa.service.hydrator
: a \Zend\Stdlib\Hydrator\ClassMethods instance with strategies and filters for requests/responses
Registered view helper
To use this view helper you must add zendframework/zend-view
to your composer dependencies.
satoshi
: a \Zend\View\Helper\AbstractHelper instance which converts satoshi to other unit e.g. bitcoin
Examples
This module is very easy to use. However, these code snippets should help you to start.
Send bitcoins
Here is an example how to send a transaction to a bitcoin address:
Send bitcoins to multiple addresses
Here is an example how to send a transaction to multiple recipients in the same transaction.
Get wallet balance
Here is an example how to retrieve wallet balance:
Using view helper to convert satoshi to other unit e.g. bitcoins
Here is an example how to use satoshi view helper to convert satoshi to an other unit:
All versions of blockchain-wallet-api with dependencies
zendframework/zend-servicemanager Version ~2.2
zendframework/zend-stdlib Version ~2.2
zendframework/zend-http Version ~2.2
zendframework/zend-filter Version ~2.2
sandrokeil/easy-config Version ~1.0