Download the PHP package seegno/bitreserve-sdk-php without Composer
On this page you can find all versions of the php package seegno/bitreserve-sdk-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download seegno/bitreserve-sdk-php
More information about seegno/bitreserve-sdk-php
Files in seegno/bitreserve-sdk-php
Package bitreserve-sdk-php
Short Description Uphold SDK PHP for the Uphold API
License MIT
Homepage https://github.com/seegno/uphold-sdk-php
Informations about the package bitreserve-sdk-php
Uphold SDK for PHP
Uphold is a next generation money service business that shields you from bitcoin volatility by enabling you to hold bitcoin as the money you use every day.
The Uphold SDK for PHP provides an easy way for developers to integrate PHP applications with the Uphold API.
Requirements
Installation
Standalone
Grab the latest version of the library:
$ git clone https://github.com/seegno/uphold-sdk-php.git
Install composer:
$ curl -s https://getcomposer.org/installer | php
Install the library dependencies:
$ php composer.phar install
Require the autoloader file generated by composer:
Integrating with another project using composer
Require the library package as a dependency:
Basic usage
In order to learn more about the Uphold API, please check out the API documentation.
First, create a Personal Access Token (PAT) using the command described below.
Create a Personal Access Token
$ php lib/Uphold/console.php tokens:create
Then, create a new instance of the Client
class with token. Take a look at the following examples and explore more on the examples directory.
Authorize user
Get authenticated user
Get user balances
You could get user total balance:
The above produces the output shown below:
Get user cards
Create new card
The above produces the output shown below:
Get rates
Or you could get rates for a specific currency:
The above produces the output shown below:
Create and commit a new transaction
The above produces the output shown below:
Get all public transactions
Or you could get a specific public transaction:
Get reserve status
Pagination
Some endpoints will return a paginator. Here is some examples on how you can handle it.
Tests
Run the tests from the root directory:
$ ./vendor/bin/phpunit
You can find PHPUnit documentation here.
Contributing & Development
Contributing
Found a bug or want to suggest something? Take a look first on the current and closed issues. If it is something new, please submit an issue.
Develop
It will be awesome if you can help us evolve uphold-sdk-php
. Want to help?
- Fork it.
php composer.phar install
.- Hack away.
- Run the tests:
phpunit
. - Create a Pull Request.
All versions of bitreserve-sdk-php with dependencies
ext-curl Version *
guzzlehttp/guzzle Version ~5.1
symfony/console Version ~2.6