https://github.com/neto737/bitgosdk-php
BitGo SDK written in PHP
https://github.com/neto737/bitgosdk-php
bitcoin bitgo blockchain gateway-api payments php sdk
Last synced: 4 months ago
JSON representation
BitGo SDK written in PHP
- Host: GitHub
- URL: https://github.com/neto737/bitgosdk-php
- Owner: neto737
- License: mit
- Created: 2016-08-22T14:48:02.000Z (almost 10 years ago)
- Default Branch: main
- Last Pushed: 2022-10-31T01:09:28.000Z (over 3 years ago)
- Last Synced: 2025-03-30T16:39:18.851Z (about 1 year ago)
- Topics: bitcoin, bitgo, blockchain, gateway-api, payments, php, sdk
- Language: PHP
- Homepage:
- Size: 316 KB
- Stars: 24
- Watchers: 2
- Forks: 18
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# BitGoSDK PHP
BitGoSDK written in PHP. This SDK contains methods for easily interacting with the BitGo API.
[](https://packagist.org/packages/neto737/bitgosdk-php)
[](https://packagist.org/packages/neto737/bitgosdk-php)
[](//packagist.org/packages/neto737/bitgosdk-php)
[](https://packagist.org/packages/neto737/bitgosdk-php)
[](https://packagist.org/packages/neto737/bitgosdk-php)
## Requirements
- PHP 7.0 or earlier with:
- cURL
- BCMath
## Installation
To install the SDK, you will need to be using [Composer](http://getcomposer.org/) in your project. If you aren't using Composer yet, it's really simple! Here's how to install composer and the BitGoSDK PHP.
```sh
# Install Composer
curl -sS https://getcomposer.org/installer | php
# Add the BitGoSDK as a dependency
php composer.phar require neto737/bitgosdk-php
```
Next, require Composer's autoloader, in your application, to automatically load the BitGoSDK in your project:
```php
require 'vendor/autoload.php';
use neto737\BitGoSDK\BitGoSDK;
```
Or if put the following in your `composer.json`:
```json
"neto737/bitgosdk-php": "*"
```
## Example
```php
require 'vendor/autoload.php';
use neto737\BitGoSDK\BitGoSDK;
use neto737\BitGoSDK\Enum\CurrencyCode;
$bitgo = new BitGoSDK('YOUR_API_KEY_HERE', CurrencyCode::BITCOIN, false);
$bitgo->walletId = 'YOUR_WALLET_ID_HERE';
$createAddress = $bitgo->createWalletAddress();
```
## BitGo Express
If you are going to use BitGo Express you have to run a BitGo Express node. You can find how to run your own BitGo Express node [here](https://github.com/BitGo/BitGoJS/blob/master/modules/express/README.md).
## Attention
Keep your cacert.pem always up to date. You can find updates on the site [curl.haxx.se](https://curl.haxx.se/docs/caextract.html).
## Credits
- [Neto Melo](https://github.com/neto737)
## Donate
[](https://www.blockchain.com/btc/address/bc1pduj90df9cs3md3gym3q809slfv2x5phnpv8xznajys5q3tlulnzqt3flwn)
[](https://etherscan.io/address/0xeef9220639F14E7A0FD825AAAd0574e5a8aD7A4B)
[](https://blockchair.com/litecoin/address/ltc1q508qfkd09vyya6c5zkfx4r248pf3ezj9ngjdr2)
[](https://www.paypal.com/donate/?business=T7RVRCXLZXB58&no_recurring=0¤cy_code=USD)