PHPackages                             tamble/bluedrone-client-php - 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. tamble/bluedrone-client-php

ActiveLibrary[API Development](/categories/api)

tamble/bluedrone-client-php
===========================

Bluedrone API client for PHP

0.1.6(10y ago)036MITPHPPHP &gt;=5.3.0

Since Aug 14Pushed 10y ago2 watchersCompare

[ Source](https://github.com/tamble/bluedrone-client-php)[ Packagist](https://packagist.org/packages/tamble/bluedrone-client-php)[ Docs](https://github.com/tamble/bluedrone-client-php)[ RSS](/packages/tamble-bluedrone-client-php/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (1)Versions (9)Used By (0)

BlueDrone API PHP Client Library
================================

[](#bluedrone-api-php-client-library)

Bluedrone is a fulfillment service. You can sign up for an account at

Requirements
------------

[](#requirements)

Any PHP version &gt;= 5.3 is supported.

This client is built on top of the [guzzle http library](http://guzzle.readthedocs.org/en/latest/)and requires the [json php extension](http://php.net/manual/en/book.json.php).

Having the the [curl php extension](http://php.net/manual/en/book.curl.php) installed too is recommended but not required.

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

[](#installation)

**Via [Composer](http://getcomposer.org/):**

Create or add the following to composer.json in your project root:

```
{
    "require": {
        "tamble/bluedrone-client-php": "*"
    }
}
```

Install composer dependencies:

```
php composer.phar install
```

or

```
composer install
```

Require dependencies:

```
require_once("/path/to/vendor/autoload.php");
```

Storage
-------

[](#storage)

Because the Bluedrone API uses Oauth2 you will need to store the access token between requests. For this purpose two storage adapters are provided but you can use any other as long as it implements the Token\\Storage\\StorageInterface interface.

The bundled examples directory display various ways of using these adapters.

If you're using the Mysql adapter, you will require to create a table with the following structure (the engine can be MyISAM if you want):

```
CREATE TABLE IF NOT EXISTS `bluedrone_tokens` (
  `id` int(10) unsigned NOT NULL,
  `value` varchar(255) NOT NULL,
  `eol_timestamp` int(10) unsigned NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
```

Example
-------

[](#example)

```
