PHPackages                             edmundluong/php-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. edmundluong/php-api-client

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

edmundluong/php-api-client
==========================

Provides a simple layer of abstraction over Guzzle Services

0.5.3(10y ago)054MITPHPPHP &gt;=5.5.0

Since Oct 16Pushed 10y ago1 watchersCompare

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

READMEChangelogDependencies (3)Versions (6)Used By (0)

PHP API Client
==============

[](#php-api-client)

[![Build Status](https://camo.githubusercontent.com/11a02bbf9fd7ea7bc0a718be8ccea9ec04e48e90ceff80b4e9d2a8b5ca41f0d8/68747470733a2f2f7472617669732d63692e6f72672f65646d756e646c756f6e672f7068702d6170692d636c69656e742e737667)](https://travis-ci.org/edmundluong/php-api-client)[![License](https://camo.githubusercontent.com/62ba4b7dcb3d29b540487aef74a1de2ee6cf0f53e5fbdd43411740046239d83a/68747470733a2f2f706f7365722e707567782e6f72672f65646d756e646c756f6e672f7068702d6170692d636c69656e742f6c6963656e7365)](https://packagist.org/packages/edmundluong/php-api-client)

Provides a simple layer of abstraction over the [Guzzle Services](https://github.com/guzzle/guzzle-services)client in order to facilitate common tasks related to making API requests to web services, such as logging and HTTP request signing for authentication purposes.

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

[](#installation)

PHP API Client requires PHP 5.5 or higher. Install the package via [Composer](http://getcomposer.org/):

```
composer require "edmundluong/php-api-client"

```

Basic Usage
-----------

[](#basic-usage)

Define the API endpoints you want to access by extending the `AbstractApiDescription` base class and overriding the `load()` method to return a `new static` with the API endpoints defined.

\[See documentation on Guzzle Service Descriptions for more information.\] ()

An example of a Twitter URLs API description:

```
