2017 © Pedro Peláez
 

project atrium-php

A PHP wrapper for the MX Atrium API.

image

nateritter/atrium-php

A PHP wrapper for the MX Atrium API.

  • Saturday, February 10, 2018
  • by nateritter
  • Repository
  • 1 Watchers
  • 0 Stars
  • 417 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 84 % Grown

The README.md

Atrium-PHP

A PHP wrapper for the MX Atrium API. In order to make requests, you will need to sign up for the MX Atrium API and get a MX-API-KEY and a MX-CLIENT-ID., (*1)

Installation

Use Composer or Yarn to add the library to your application:, (*2)

composer install nateritter/atrium-php

or, (*3)

yarn add nateritter/atrium-php

Usage

Use the atrium module in your source code with the following, (*4)

use NateRitter\AtriumPHP\AtriumClient;

Then configure your instance with the following. (The ENVIRONMENT will be either vestibule.mx.com for the development environment or atrium.mx.com for the production environment.), (*5)

$atriumClient = new AtriumClient('ENVIRONMENT', 'YOUR_MX_API_KEY', 'YOUR_MX_CLIENT_ID');

Then start using class methods to make calls to the Atrium API for data. See the full Atrium documentation for more details., (*6)

# use AtriumClient wrapper class
use NateRitter\AtriumPHP\AtriumClient;

# Configure AtriumClient
$atriumClient = new AtriumClient('ENVIRONMENT', 'YOUR_MX_API_KEY', 'YOUR_MX_CLIENT_ID');

# Now begin making Atrium calls
$atriumClient->createUser(['identifier' => 'UniqueID']); # Create a user, etc...

Examples

The /examples directory contains various workflows and code snippets. You will first need to modify the line shown below in each example with the environment, YOUR-MX-API-KEY, and YOUR-MX-CLIENT-ID before running., (*7)

$atriumClient = new AtriumClient('ENVIRONMENT', 'YOUR_MX_API_KEY', 'YOUR_MX_CLIENT_ID');

The Versions

10/02 2018

dev-master

9999999-dev

A PHP wrapper for the MX Atrium API.

  Sources   Download

MIT

The Requires

 

The Development Requires

api wrapper atrium

10/02 2018

dev-develop

dev-develop

A PHP wrapper for the MX Atrium API.

  Sources   Download

MIT

The Requires

 

The Development Requires

api wrapper atrium

10/02 2018

v0.1.1

0.1.1.0

A PHP wrapper for the MX Atrium API.

  Sources   Download

MIT

The Requires

 

The Development Requires

api wrapper atrium

21/12 2017

v0.1

0.1.0.0

A PHP wrapper for the MX Atrium API.

  Sources   Download

MIT

The Requires

 

The Development Requires

api wrapper atrium