Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Blockchain Bundle Laravel Package

aminin/blockchain-bundle

View on GitHub
Deep Wiki
Context7

AmiBlockchainBundle

License

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

Prerequisites

This version of the bundle requires Symfony 2.8+

Installation

Step 1: Download AmiBlockchainBundle using composer

Add AmiBlockchainBundle in your composer.json:

$ composer require aminin/blockchain-bundle

Step 2: Enable the bundle

Enable the bundle in the kernel:

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

<?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

# 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:

# 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

    /** @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

References

Blockchain API client: https://github.com/blockchain/api-v1-client-php

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
terminal42/code-quality-tools
codifyo/ts-generator-bundle
andydefer/laravel-cluster
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky