PHPackages                             volabit/client - 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. volabit/client

ActiveLibrary[API Development](/categories/api)

volabit/client
==============

Library for the Volabit API.

v1.0.2(11y ago)220MITPHPPHP &gt;=5.4.0

Since Feb 19Pushed 10y ago9 watchersCompare

[ Source](https://github.com/coincovemx/php-api-client)[ Packagist](https://packagist.org/packages/volabit/client)[ RSS](/packages/volabit-client/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (4)Versions (5)Used By (0)

Volabit PHP Client
==================

[](#volabit-php-client)

Volabit's API library for PHP. Integrate the Volabit services in your apps with ease.

You can see the available methods on the [project wiki](https://github.com/coincovemx/php-api-client/wiki). Details of the API use can be found on the [official page](https://coincovemx.github.io/).

Installation
------------

[](#installation)

Using [Composer](https://getcomposer.org/):

```
$ composer require volabit/client

```

Then, you may require the autoload script and use the Volabit namespace in your code:

```
require 'vendor/autoload.php'

use Volabit\Client\OAuth2Client as VolabitClient;
```

Usage
-----

[](#usage)

1. Instance a new Volabit client object.

```
$app_id   = 'The registered API for your APP.';
$secret   = 'The registered secret for your APP.';
$callback = 'The registered callback URL for your APP';

$volabitClient = new VolabitClient($app_id, $secret, $callback);
```

Note that the by default the Volabit client uses the **production** environment. If you want to use the **test** environment, set the sandbox flag to `true` before requesting the authorization code.

```
$volabitClient->sandbox(true);
```

2. Get the URL that will allow the user to authorize your app to use his/her account. (It should be opened in a browser.)

```
$auth_url = $volabitClient->authorize();
```

3. After you get the authorization code (sent at the callback URL that you provided), you'll use it to get the refresh and access tokens. This code can be used only once, so be sure to store the token object for later use or your app will have to be reauthorized.

```
$volabitClient->getTokens('The given authorization code.');
```

Or, you can load previously obtained tokens from an array:

```
$tokens = [
  'access_token' => 'an access token',
  'refresh_token' => 'a refresh token',
  'expires_in' => 'expiration time (unix time format)'
];

$volabitClient->useTokens($tokens);
```

4. With these tokens, you'll be ready to call the services. The methods will return a response array.

```
$response = $volabitClient->tickers();
print_r($response);
// Array
// (
//    [btc_usd_buy] => 236.42
//    [btc_usd_sell] => 236.51
//    [usd_mxn_buy] => 14.59
//    [usd_mxn_sell] => 15.19
//    [btc_mxn_buy] => 3450.44
//    [btc_mxn_sell] => 3592.64
// )
```

**Note**: If you get `unauthorized` error responses from the API, try to reauthorize your application and get new tokens.

You can see the available methods source on the [corresponding section](https://github.com/coincovemx/php-api-client/blob/master/src/Volabit.php) of the client. Details of the API use can be found on the [official page](https://coincovemx.github.io/).

Contributing
------------

[](#contributing)

1. Fork it ( [https://github.com/\[my-github-username\]/php-api-client/fork](https://github.com/%5Bmy-github-username%5D/php-api-client/fork) )
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request

[![Bitdeli Badge](https://camo.githubusercontent.com/44345d6630dd738c79b105c7f32fa537c4fb05728735980ca06ee9aef4170dae/68747470733a2f2f64327765637a68766c38323376302e636c6f756466726f6e742e6e65742f636f696e636f76656d782f7068702d6170692d636c69656e742f7472656e642e706e67)](https://bitdeli.com/free "Bitdeli Badge")

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 69.4% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~20 days

Total

3

Last Release

4110d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/03ef6dc5e5300cb10ed1de697b630e30530ccf701b0904e610af3b6c0a80be6f?d=identicon)[genaromadrid](/maintainers/genaromadrid)

![](https://avatars.githubusercontent.com/u/92138?v=4)[赤](/maintainers/rojo)[@Rojo](https://github.com/Rojo)

---

Top Contributors

[![Rojo](https://avatars.githubusercontent.com/u/92138?v=4)](https://github.com/Rojo "Rojo (34 commits)")[![genaromadrid](https://avatars.githubusercontent.com/u/9002856?v=4)](https://github.com/genaromadrid "genaromadrid (9 commits)")[![travisdoherty](https://avatars.githubusercontent.com/u/6044298?v=4)](https://github.com/travisdoherty "travisdoherty (5 commits)")[![bitdeli-chef](https://avatars.githubusercontent.com/u/3092978?v=4)](https://github.com/bitdeli-chef "bitdeli-chef (1 commits)")

---

Tags

paymentsbitcoinvolabit

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/volabit-client/health.svg)

```
[![Health](https://phpackages.com/badges/volabit-client/health.svg)](https://phpackages.com/packages/volabit-client)
```

###  Alternatives

[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[showdoc/showdoc

ShowDoc is a tool greatly applicable for an IT team to share documents online

12.8k7.1k](/packages/showdoc-showdoc)[mollie/mollie-api-php

Mollie API client library for PHP. Mollie is a European Payment Service provider and offers international payment methods such as Mastercard, VISA, American Express and PayPal, and local payment methods such as iDEAL, Bancontact, SOFORT Banking, SEPA direct debit, Belfius Direct Net, KBC Payment Button and various gift cards such as Podiumcadeaukaart and fashioncheque.

60216.0M83](/packages/mollie-mollie-api-php)[mollie/laravel-mollie

Mollie API client wrapper for Laravel &amp; Mollie Connect provider for Laravel Socialite

3624.5M36](/packages/mollie-laravel-mollie)[mollie/magento2

Mollie Payment Module for Magento 2

1131.9M16](/packages/mollie-magento2)[cybersource/sdk-php

CyberSource PHP SOAP client

602.5M1](/packages/cybersource-sdk-php)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
