Download the PHP package blockavel/lara-block-io without Composer
On this page you can find all versions of the php package blockavel/lara-block-io. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download blockavel/lara-block-io
More information about blockavel/lara-block-io
Files in blockavel/lara-block-io
Package lara-block-io
Short Description Laravel package for the Block.io API
License MIT
Informations about the package lara-block-io
blockavel/lara-block-io
A Laravel package/facade for the Block.io API PHP wrapper.
This repository implements a simple Service Provider of the Block.io client, and makes it easily accessible via a Facade in Laravel >= 5.
See @BlockIo/block_io-php and the BlockIo PHP API docs for more information about the PHP wrapper of the Block.io API and its interfaces.
Requirements
Create an account at Block.io and take note of your API key under Account > Dashboard.
The BlockIo library requires the 'mcrypt' (please note that mcrypt has been deprecated for php7.1), 'gmp', and 'cURL' extensions for PHP as well as the 'bcmath' library. To enable these, please see:
Installation using Composer
In your terminal application move to the root directory of your laravel project using the cd command and require the project as a dependency using composer.
composer require blockavel/lara-block-io
This will add the following lines to your composer.json and download the project and its dependencies to your projects ./vendor directory:
Usage
In order to use the static interface we must customize the application configuration to tell the system where it can find the new service. Open the file config/app.php and add the following lines ([a], [b]):
Publish Vendor
lara-block-io requires a connection configuration. To get started, you'll need to publish all vendor assets running:
php artisan vendor:publish
This will create a config/larablockio.php file in your app that you can modify to set your configuration. Make sure you check for changes compared to the original config file after an upgrade.
Now you should be able to use the facade within your application. Ex:
List of Available Methods
Balance and Network Info
Addresses
Withdraw
Archive
Transactions
DTrust
Sweep Funds
Testing
Unit Tests are created with PHPunit and orchestra/testbench, they can be ran with ./vendor/bin/phpunit.
Contributing
Find an area you can help with and do it. Open source is about collaboration and open participation. Try to make your code look like what already exists or better and submit a pull request. Also, if you have any ideas on how to make the code better or on improving the scope and functionality please contact any of the contributors.
License
MIT License.
All versions of lara-block-io with dependencies
block_io-php/block_io-php Version ^1.1
ext-mcrypt Version *
ext-gmp Version *
ext-curl Version *
ext-bcmath Version *