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

Abandoned → [ukfast/sdk](/?search=ukfast%2Fsdk)Library[API Development](/categories/api)

ukfast/client
=============

ANS SDK for PHP

v2.6.0(2mo ago)667517[1 PRs](https://github.com/ans-group/sdk-php/pulls)MITPHPPHP &gt;=5.6CI passing

Since Sep 30Pushed 1mo ago6 watchersCompare

[ Source](https://github.com/ans-group/sdk-php)[ Packagist](https://packagist.org/packages/ukfast/client)[ RSS](/packages/ukfast-client/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (4)Versions (344)Used By (0)

ANS API PHP SDK
===============

[](#ans-api-php-sdk)

[![Build Status](https://github.com/ans-group/sdk-php/actions/workflows/run-tests.yml/badge.svg)](https://github.com/ans-group/sdk-php/actions/workflows/run-tests.yml/badge.svg)[![MIT licensed](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](LICENSE)

A PHP library for connecting your application(s) to the ANS APIs.

To use this package, you will need an ANS account. Sign up for free at [ans.co.uk](https://www.ans.co.uk/book-in-a-call/?utm_source=github&utm_medium=link&utm_campaign=apio), and refer to the [Getting Started](https://developers.ukfast.io/getting-started?utm_source=github&utm_medium=link&utm_campaign=apio) section of our developer documentation for more information on consuming our APIs.

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

[](#installation)

The recommended way to install this package is through [composer](https://getcomposer.org).

```
composer require ans-group/sdk

```

Alternatively, you can download one of our [tagged releases](https://github.com/ans-group/sdk-php/releases) for manual installation, we don't recommend cloning the master branch for use in production environments as we cannot guarantee its stability.

This package does currently support PHP 5.6+, but we recommend moving to 7.1+ as soon as possible.

Usage
-----

[](#usage)

Each API has its own client class that extends from a base client class. All clients have an `auth` method which takes an API token to be used when sending requests.

Each client class has its own subclients, which can be accessed via methods on the base client.

**Example**

```
