Skip to content

iMoneza/imoneza-php-api

Repository files navigation

iMoneza PHP API

Build Status Coverage Status

A PHP library to integrate iMoneza into your application.

Using your http://imoneza.com account, you can interact with all parts of the API using this library. This library requires PHP 5.4+ and curl to be installed.

Installation

This library is available on packagist and can be installed using composer.

$ composer require imoneza/imoneza-php-api

Basic Usage

There are a number of ways to interact with the API. But, the way of performing each task is relatively the same. For this example, let's save a resource to iMoneza.

$options = new \iMoneza\Options\Management\SaveResource();
$options->setExternalKey('announcement-wisconsin-crowned-king-of-cheese')
    ->setName('Wisconsin Crowned King of Cheese')
    ->setTitle('Wisconsin Crowned King of Cheese')
    ->setPricingGroupId('aaa111bb-22cc-425f-425f-aaa111bb452d');

$logger = new \Monolog\Logger('iMoneza');
$connection = new \iMoneza\Connection($apiKey, $secretKey, $accessApiKey, $accessSecretKey, new \iMoneza\Request\Curl(), $logger);
$connection->request($options, new \iMoneza\Data\None());

Documentation

Introduction
The Connection Object
Options Objects
Data Objects
Examples

About

Requirements

  • PHP 5.4+
  • Curl
  • iMoneza publisher account

Bugs, Feature Requests and Testing

The features of this project are handled internally by iMoneza. However, we do encourage you to visit the issues section here on GitHub if you have any suggestions, requests, or find a bug.

Testing is managed by Travis CI and coverage provided by Coveralls.

Author

iMoneza, LLC

Contributors

Aaron Saray

License

This library is licensed under the LGPLv3 License - see the LICENSE file for details