PHPackages                             airtimerewards/ar-connect-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. airtimerewards/ar-connect-sdk

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

airtimerewards/ar-connect-sdk
=============================

PHP SDK for using AR Connect.

3.1.0(4y ago)030.5k↓40.3%MITPHPPHP ^7.4 || ^8.0

Since Aug 14Pushed 2y ago2 watchersCompare

[ Source](https://github.com/airtimerewards/ar-connect-php-sdk)[ Packagist](https://packagist.org/packages/airtimerewards/ar-connect-sdk)[ Docs](https://www.airtimerewards.co.uk/connect)[ RSS](/packages/airtimerewards-ar-connect-sdk/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (7)Versions (24)Used By (0)

[![Packagist](https://camo.githubusercontent.com/d48cfb5bf5f7fce84c4a2e23d2d48da5d1543cccc5d199fca278a271f310821e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f61697274696d65726577617264732f61722d636f6e6e6563742d73646b2e737667)](https://camo.githubusercontent.com/d48cfb5bf5f7fce84c4a2e23d2d48da5d1543cccc5d199fca278a271f310821e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f61697274696d65726577617264732f61722d636f6e6e6563742d73646b2e737667)[![Packagist](https://camo.githubusercontent.com/e1832c29c10f4beeaf920ac5813fee3d12b1fa0bbe80d1a368a125d1d44f46fa/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f61697274696d65726577617264732f61722d636f6e6e6563742d73646b2e737667)](https://camo.githubusercontent.com/e1832c29c10f4beeaf920ac5813fee3d12b1fa0bbe80d1a368a125d1d44f46fa/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f61697274696d65726577617264732f61722d636f6e6e6563742d73646b2e737667)

AR Connect SDK
==============

[](#ar-connect-sdk)

This package offers a client for interacting with [AR Connect](https://www.airtimerewards.co.uk/connect).

1. Requirements
---------------

[](#1-requirements)

This SDK requires PHP 7.1 or later. Additionally you must be registered with [AR Connect](https://www.airtimerewards.co.uk/connect) to be able to use an API. Finally, you will need an environment set up and an API key for that environment.

2. Installation
---------------

[](#2-installation)

The recommended installation is to use [composer](https://www.getcomposer.com), and run the command:

```
$ composer require airtimerewards/ar-connect-sdk
```

3. Usage
--------

[](#3-usage)

The AR Connect client provides methods for interacting with the AR Connect API.

### 3.1 Instantiating a client

[](#31-instantiating-a-client)

To instantiate a client, use the factory method and pass in your environment ID and API key.

**Important:** The API key must be for the environment that has been specified. Errors will occur if they do not match.

```
