softinvest/laravel-bitgo-wallet
Composer 安装命令:
composer require softinvest/laravel-bitgo-wallet
包简介
Bitgo blockchain service integration for laravel
README 文档
README
You can install the package via composer:
composer require softinvest/laravel-bitgo-wallet
You can publish the config file with:
php artisan vendor:publish --provider="Khomeriki\BitgoWallet\BitgoServiceProvider"
This is the contents of the published config file:
return [ 'use_mocks' => env('BITGO_USE_MOCKS', true),//for tests 'testnet' => env('BITGO_TESTNET', true), 'api_key' => env('BITGO_API_KEY'), 'v2_api_prefix' => 'api/v2/', 'testnet_api_url'=>'https://app.bitgo-test.com', 'mainnet_api_url'=>'https://app.bitgo.com', 'express_api_url' => env('BITGO_EXPRESS_API_URL'), 'default_coin' => env('BITGO_DEFAULT_COIN', 'tbtc'), 'webhook_callback_url' => env('BITGO_WEBHOOK_CALLBACK'), ];
Usage
Generate a wallet with webhooks
use Khomeriki\BitgoWallet\Facades\Wallet; $wallet = Wallet::init(coin: 'tbtc') ->generate(label: 'wallet label', passphrase: 'password') ->addWebhook(numConfirmations: 0) ->addWebhook(numConfirmations: 1); return $wallet;
Add webhook on a wallet with custom callback url
use Khomeriki\BitgoWallet\Facades\Wallet; $wallet = Wallet::init(coin: 'tbtc', id: 'wallet-id') ->addWebhook( numConfirmations: 3, callbackUrl: 'https://your-domain.com/api/callback' ); return $wallet;
Generate address on an existing wallet
use Khomeriki\BitgoWallet\Facades\Wallet; $wallet = Wallet::init(coin: 'tbtc', id: 'your-wallet-id') ->generateAddress(label: 'address label'); return $wallet->address;
Check maximum spendable amount on a wallet
use Khomeriki\BitgoWallet\Facades\Wallet; $maxSpendable = Wallet::init(coin: 'tbtc', id: 'your-wallet-id') ->getMaximumSpendable(); return $maxSpendable;
Get all the transactions on wallet
use Khomeriki\BitgoWallet\Facades\Wallet; $transfers = Wallet::init(coin: 'tbtc', id: 'your-wallet-id') ->getTransfers(); return $transfers;
Get transfer by transfer id
use Khomeriki\BitgoWallet\Facades\Wallet; $transfer = Wallet::init(coin: 'tbtc', id: 'your-wallet-id') ->getTransfer(transferId: 'transferId'); return $transfer;
Send transfer from a wallet
use Khomeriki\BitgoWallet\Data\TransferRecipient; use Khomeriki\BitgoWallet\Data\Transfer; use Khomeriki\BitgoWallet\Facades\Wallet; //you can add as many recipients as you need :) $transfer = new Transfer( walletPassphrase: 'test', transferRecipients: [ new TransferRecipient(amount: 4934, address: 'address'), new TransferRecipient(amount: 4334, address: 'address1'), ], ); $result = Wallet::init('tbtc', 'wallet-id')->sendTransfer($transfer); return $result;
Testing
composer test
Changelog
Credits
License
The MIT License (MIT). Please see License File for more information.
softinvest/laravel-bitgo-wallet 适用场景与选型建议
softinvest/laravel-bitgo-wallet 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 14 次下载、GitHub Stars 达 0, 最近一次更新时间为 2026 年 03 月 19 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「crypto」 「laravel」 「wallet」 「bitgo」 「khomeriki」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 softinvest/laravel-bitgo-wallet 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 softinvest/laravel-bitgo-wallet 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 softinvest/laravel-bitgo-wallet 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
The BlockTrail PHP SDK, for integration of Bitcoin functionality through the BlockTrail API
High-level cryptographic primitives and security utilities for Maatify systems including password hashing, reversible encryption, HKDF key derivation, and key rotation.
Library for validation of cryptocoin wallets
Alfabank REST API integration
Yoke: SSH Connection Manager/Wallet
Skrill gateway for Omnipay payment processing library
统计信息
- 总下载量: 14
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 35
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-03-19