addressix/addressixapi-client-php

Client library for Addressix API

1.2.1 2017-04-28 08:17 UTC

This package is not auto-updated.

Last update: 2025-06-14 17:38:34 UTC


README

Installation

You can either use Composer or directly use the git source.

Using Composer

To install via composer follow the installation instructions if you do not already have composer installed.

Once composer is installed, execute the following command in your project root to install this library:

$ composer require addressix/addressixapi-client-php

Be sure to include the composer autoload in your project

require_once '/path/to/your-project/vendor/autoload.php';

Using Git

$ git@github.com:addressix/addressixapi-client-php.git

Usage

Initialization

$client = new \AddressixAPI\Client(
  array('clientid' => '<CLIENTID>', 
        'secret' => '<SECRET>',
        'redirect_uri' => '<REDIRECT_URI>'
  ));

The Client takes a config array with the following mandatory parameters:

  • clientid (String): your apps client id
  • secret (String): your apps secret
  • redirect_uri (String): the oauth2callback url (which must be registered)

Optional options:

  • endpoint (String): Overwrite the default Addressix API endpoint
  • verifyssl (boolean): wheter to verify the SSL peer (default true)

Obtain the Apps Client ID and Secret on Create API Application