PHPackages                             lucas-simas/php-sdk-v3 - 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. lucas-simas/php-sdk-v3

ActiveLibrary[API Development](/categories/api)

lucas-simas/php-sdk-v3
======================

PHP SDK for Unlimit API v3

019PHP

Since Sep 25Pushed 2y agoCompare

[ Source](https://github.com/lucas-simas/php-sdk-v3)[ Packagist](https://packagist.org/packages/lucas-simas/php-sdk-v3)[ RSS](/packages/lucas-simas-php-sdk-v3/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

PHP SDK for Unlimit API v3
==========================

[](#php-sdk-for-unlimit-api-v3)

The Unlimit API uses HTTP verbs and a RESTful endpoint structure. Request and response payloads are formatted as JSON.

- API version: 3.0
- PHP SDK version: 3.56.0

For more information, please visit

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

[](#requirements)

- PHP 5.6 or later
- curl, json, openssl extensions

Installation &amp; Usage
------------------------

[](#installation--usage)

### Composer

[](#composer)

To install the bindings via [Composer](http://getcomposer.org/), add the following to `composer.json`:

```
{
  "repositories": [
    {
      "type": "git",
      "url": "https://github.com/cardpay/php-sdk-v3.git"
    }
  ],
  "require": {
    "cardpay/php-sdk-v3": "*@dev"
  }
}

```

Then run `composer install`

### Manual Installation

[](#manual-installation)

Download the files, run `composer install` and include `autoload.php`:

```
require_once('./vendor/autoload.php');
```

### Proxy Usage

[](#proxy-usage)

SDK will automatically use the proxy if the `HTTPS_PROXY` or `HTTP_PROXY` environment variable is set.

Getting Started
---------------

[](#getting-started)

**Important:** please note that current implementation is using temporary files storage (see [FileTokensStorageApi](lib/api/FileTokensStorageApi.php)), to save, read and delete (if needed) the API tokens. You may implement another tokens storage (session, database, Memcached, Redis, etc) by implementing [TokensStorageApi](lib/api/TokensStorageApi.php) interface.

In order to obtain the API tokens please use [AuthApiClient](lib/api/AuthApiClient.php). It requires API terminal code and password, provided by Unlimit.

Please follow the [installation procedure](#installation--usage) and then run the following:

```
