danielgelling/block-io

This package is abandoned and no longer maintained. No replacement package was suggested.

v1.0 2015-12-09 17:57 UTC

This package is not auto-updated.

Last update: 2023-06-28 12:06:56 UTC


README

Total Downloads Latest Stable Version Latest Unstable Version License

This repository contains a class which can be used for Block.io's API. This repository doesn't require any php mods to be installed. It has all methods that Block.io's API has in the form of URL's.

Installation

Using Composer

Simply use composer to install this repository into your project.

composer require danielgelling/block-io:1.*

Downloading the repository

When you choose to download the repository, instead of using composer, you'll need to include all files in the src directory in the order as listed below.

require 'src/Http.php';
require 'src/Factory.php';

Making a call

First you need to create a new instance of the Factory class. Which constructor needs the api key, pin and version.

$api = new BlockIO\Factory($apiKey, $pin, $version);

Then on the $api object you can call any method as shown on Block.io's API documentation.