blockchainrndhub / bitcoin-bundle
Bitcoin bundle为我们提供了使用比特币服务的能力。
1.0.0
2017-09-12 10:40 UTC
Requires
- php: ^7.0
- blockchain/blockchain: ^1.4
This package is not auto-updated.
Last update: 2024-09-15 02:46:41 UTC
README
安装
通过composer安装
composer require blockchainrndhub/bitcoin-bundle
在您的内核中启用该捆绑包
# app/AppKernel.php $bundles = [ //... new Blockchainrndhub\BitcoinBundle\BlockchainrndhubBitcoinBundle(), //... ];
添加配置
# app/config/config.yml blockchainrndhub_bitcoin: bitcoin_api_key: '%bitcoin_api_key%'
添加参数
# app/config/parameters.yml parameters: bitcoin_api_key: YOUR_API_KEY
使用方法
$bitcoinscan = $this->container->get('bitcoin_scan');