2017 © Pedro Peláez
 

symfony-bundle blockchain-bundle

Blockchain API integration for Symfony 2/3/4

image

aminin/blockchain-bundle

Blockchain API integration for Symfony 2/3/4

  • Tuesday, March 27, 2018
  • by aminin
  • Repository
  • 1 Watchers
  • 1 Stars
  • 12 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 4 Versions
  • 9 % Grown

The README.md

AmiBlockchainBundle

License, (*1)

Blockchain.info integration for Symfony 2/3/4. This bundle plugs the Blockchain API client into Symfony project., (*2)

Prerequisites

This version of the bundle requires Symfony 2.8+, (*3)

Installation

Step 1: Download AmiBlockchainBundle using composer

Add AmiBlockchainBundle in your composer.json:, (*4)

$ composer require aminin/blockchain-bundle

Step 2: Enable the bundle

Enable the bundle in the kernel:, (*5)

Skip if using SF4 and Flex, the bundle will be automatically added for you., (*6)

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new Ami\BlockchainBundle\AmiBlockchainBundle(),
    );
}

Step 3: Configure the AmiBlockchainBundle

Add the following configuration to your config.yml file, (*7)

# app/config/config.yml
ami_blockchain:
    api_key: YOUR-API-KEY
    service_url: SERVICE-URL-FOR-API-V-2

If using SF4 create the config file for this bundle inside config/packages:, (*8)

# config/packages/ami_blockchain.yaml
ami_blockchain:
    api_key: YOUR-API-KEY
    service_url: SERVICE-URL-FOR-API-V-2

# If you like to define this values in `.env` file or your server environment variables use:
    api_key: '%env(BLOCKCHAIN_API_KEY)%'
    service_url: '%env(BLOCKCHAIN_SERVICE_URL)%'

Usage

You may access the Blockchain as ami_blockchain.blockchain service, (*9)

    /** @var ContainerInterface $container */
    $container->get('ami_blockchain.blockchain')->…;

License

This bundle is under the MIT license. See the complete license in the Resources/meta/LICENSE, (*10)

References

Blockchain API client: https://github.com/blockchain/api-v1-client-php, (*11)

The Versions

27/03 2018

dev-master

9999999-dev

Blockchain API integration for Symfony 2/3/4

  Sources   Download

MIT

The Requires

 

The Development Requires

by Anton Minin

27/03 2018

v0.3.0

0.3.0.0

Blockchain API integration for Symfony 2/3/4

  Sources   Download

MIT

The Requires

 

The Development Requires

by Anton Minin

24/03 2018

v0.2.0

0.2.0.0

Blockchain API integration for Symfony 2/3

  Sources   Download

MIT

The Requires

 

The Development Requires

by Anton Minin

07/11 2017

v0.1.0

0.1.0.0

Blockchain API integration for Symfony 2/3

  Sources   Download

MIT

The Requires

 

The Development Requires

by Anton Minin