PHPackages                             chartblocks/php-rest-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. chartblocks/php-rest-sdk

ActiveLibrary

chartblocks/php-rest-sdk
========================

ChartBlocks SDK

1.1.7(1y ago)145.1k↓31.5%MITPHPPHP &gt;=5.4

Since Feb 5Pushed 1y ago9 watchersCompare

[ Source](https://github.com/ChartBlocks/php-rest-sdk)[ Packagist](https://packagist.org/packages/chartblocks/php-rest-sdk)[ Docs](http://www.chartblocks.com)[ RSS](/packages/chartblocks-php-rest-sdk/feed)WikiDiscussions master Synced 1mo ago

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

php-rest-sdk
============

[](#php-rest-sdk)

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

[](#installation)

The easiest way to start using the SDK is to download it with [Composer](http://www.getcomposer.org). Simply add this to your composer.json file:

```
{
   "require": {
     "chartblocks/php-rest-sdk": "~1.1."
   }
}
```

Alternatively download the source code manually, and include the classes in `src/ChartBlocks`

Usage
-----

[](#usage)

### Tokens

[](#tokens)

You can get your API token and secret key by registering for an account, and then generating an API token from your profile page. Take these values and store them in your application config somewhere.

### Example

[](#example)

```
