PHPackages                             tarcisioruas/php-bitgrail-sdk - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. tarcisioruas/php-bitgrail-sdk

ActiveLibrary[API Development](/categories/api)

tarcisioruas/php-bitgrail-sdk
=============================

PHP BitGrail API is a PHP library for the BitGrail API designed to be easy to use.

v0.1.3(8y ago)011MITPHPPHP &gt;=5.4

Since Jan 28Pushed 8y ago1 watchersCompare

[ Source](https://github.com/tarcisioruas/php-bitgrail-sdk)[ Packagist](https://packagist.org/packages/tarcisioruas/php-bitgrail-sdk)[ Docs](https://github.com/tarcisioruas/php-bitgrail-sdk)[ RSS](/packages/tarcisioruas-php-bitgrail-sdk/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

PHP BITGRAIL API SDK
====================

[](#php-bitgrail-api-sdk)

This project is designed to help you make your own projects that interact with the [Bitgrail API](https://bitgrail.com/api-documentation). You can register buy, sell or cancel orders, request deposit address, withdraws and others features. This project seeks to have complete API coverage.

#### Installation

[](#installation)

```
composer require "tarcisioruas/php-bitgrail-sdk"

```

 Click for help with installationInstall Composer
----------------

[](#install-composer)

If the above step didn't work, install composer and try again.

#### Debian / Ubuntu

[](#debian--ubuntu)

```
sudo apt-get install curl
curl -s http://getcomposer.org/installer | php
php composer.phar install

```

Composer not found? Use this command instead:

```
php composer.phar require "tarcisioruas/php-bitgrail-sdk"

```

#### Windows:

[](#windows)

[Download installer for Windows](https://getcomposer.org/doc/00-intro.md#installation-windows)

#### How To Use

[](#how-to-use)

##### Setting Security Params

[](#setting-security-params)

To use private API you have to [create keys pair](https://bitgrail.com/api-keys) to authenticate user at [BitGrail](https://bitgrail.com/).

##### Code Examples

[](#code-examples)

###### Security

[](#security)

Setting security params.

```
...

/*
* You can set yours API KEY and API SECRET at Environment Variables
* or put that in a main file, like index.php.
*/
putenv('BITGRAIL_API_KEY=YourApiKey');
putenv('BITGRAIL_API_SECRET=YourSecret');

...
```

###### Markets

[](#markets)

Returns array with all tickers of all markets on BitGrail.

```
