PHPackages                             torann/api-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. [HTTP &amp; Networking](/categories/http)
4. /
5. torann/api-client

ActiveLibrary[HTTP &amp; Networking](/categories/http)

torann/api-client
=================

A reusable base API client for use with remote services.

0.2.1(9y ago)47593BSD 2-ClausePHPPHP &gt;=5.5.9

Since Mar 10Pushed 7y ago1 watchersCompare

[ Source](https://github.com/Torann/api-client)[ Packagist](https://packagist.org/packages/torann/api-client)[ RSS](/packages/torann-api-client/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (3)Dependencies (5)Versions (10)Used By (0)

Base API Client
===============

[](#base-api-client)

[![Latest Stable Version](https://camo.githubusercontent.com/09ea02a196105566ce4b6455ff233f23d8549fb6ab6d743c00b78274837ac453/68747470733a2f2f706f7365722e707567782e6f72672f746f72616e6e2f6170692d636c69656e742f762f737461626c652e706e67)](https://packagist.org/packages/torann/api-client)[![Total Downloads](https://camo.githubusercontent.com/c96a93048f14dba0a4c99d67e66d7494b2ba5eb8cf1d1d99f8a409f31d9f5c10/68747470733a2f2f706f7365722e707567782e6f72672f746f72616e6e2f6170692d636c69656e742f646f776e6c6f6164732e706e67)](https://packagist.org/packages/torann/api-client)[![Patreon donate button](https://camo.githubusercontent.com/f9e075baad95563481d35174d43ef50757281abb6bc795d0f473fad452afa030/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f70617472656f6e2d646f6e6174652d79656c6c6f772e737667)](https://www.patreon.com/torann)[![Donate weekly to this project using Gratipay](https://camo.githubusercontent.com/0eeae019980adaa1dc64842cfb01f3d738c688982ea4eb58094047011cb46704/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f67726174697061792d646f6e6174652d79656c6c6f772e737667)](https://gratipay.com/~torann)[![Donate to this project using Flattr](https://camo.githubusercontent.com/d79e412f78041f87e203449041ad81848a8405cf0f3c622c51e3bad0c2a4b599/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f666c617474722d646f6e6174652d79656c6c6f772e737667)](https://flattr.com/profile/torann)[![Donate to this project using Paypal](https://camo.githubusercontent.com/604e3db9c8751116b3f765aad0353ec7ded655bbe8aaacbc38d8c4a6b784b3ed/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f446f6e6174652d50617950616c2d677265656e2e737667)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=4CJA2A97NPYVU)

A reusable base API client for use with remote services.

- [Base API Client on Packagist](https://packagist.org/packages/torann/api-client)
- [Base API Client on GitHub](https://github.com/Torann/api-client)

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

[](#installation)

Install using composer:

```
$ composer require torann/api-client

```

Creating Clients
----------------

[](#creating-clients)

Once installed we need to create some clients. First we need to extend the `\BaseApiClient\Client` class and set endpoint namespace.

### Client

[](#client)

```
