Download the PHP package aflorea4/block_io-php without Composer

On this page you can find all versions of the php package aflorea4/block_io-php. 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 block_io-php

Block.io PHP

Current Release: 1.3.5

09/12/20: Change _withdraw and _sweep names for further disambiguation from actual API endpoints.
08/15/20: Add cURL headers for requests.
07/03/20: Use implode() instead of join() to remove PHP7.4 warning.
07/01/20: Use low R signatures by default.
06/02/20: Replace deprecated array_key_exists. Tested for PHP7.2, PHP7.3, PHP7.4. Support for earlier (EOL) versions of PHP is not guaranteed.
05/10/19: Minor updates. Tested for PHP7.x.
09/10/17: Replace mCrypt with OpenSSL. PHP5.6+ only.
02/06/17: Enforce use of TLSv1.2.
01/29/15: Added support for getting Wallet Import Format private keys from custom keys.
01/19/15: Added support for sweeping legacy keys.
01/09/15: Added sweep functionality.
11/03/14: Fix DER signature encoding. Now stable.
18/10/14: Enforcing Determinism in Signatures (RFC6979), also using BIP62 to hinder transaction malleability.
15/10/14: Enforce use of TLSv1, step away from the vulnerable SSLv3.
10/10/14: Added 3 of 4 MultiSig example.
09/28/14: Updated for v2 handling.

PHP wrapper for Block.io for use with Dogecoin, Bitcoin, and Litecoin. API key validation on instantiation, simple abstraction layer on top of existing API interfaces, and automatic JSON decoding on response.

Requirements

This library requires the 'gmp', and cURL extensions for PHP. To enable these extensions, see:

GMP Installation Guide

cURL Installation Guide

Warning

If you're using Windows, beware that SSL will not function properly, and this library will throw errors.

To fix the SSL issue on Windows, please do the following:

Download http://curl.haxx.se/ca/cacert.pem to a directory of your choice
Make PHP use this file to validate Block.io's SSL certificate by adding this line to your php.ini:

Usage

First, sign up for an account at Block.io and take note of your API key under Account > Dashboard.

Download and include the block_io.php class:

Or preferably install via Composer

Instantiate the class and set your API key. If the API key is valid the set function will return true otherwise false.

The wrapper abstracts all methods listed at https://block.io/api/php using the same interface names. For example, to get your current account balance:

To make requests that require parameters (eg. an address label or address to withdraw to), pass through each parameter in an associative array. For example, the request below will withdraw 50 DOGE to the wallet you specify in place of WALLET-ADDRESS-HERE:

Note: This library throws Exceptions when calls fail. Implement try/catch blocks, and retrieve the Exception message to see details.

Please see Block.io PHP Docs for details on available calls.


All versions of block_io-php with dependencies

PHP Build Version
Package Version
Requires php Version >=7.2.0
ext-gmp Version *
ext-curl Version *
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 aflorea4/block_io-php contains the following files

Loading the files please wait ....