The Wallit SDK for PHP
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs
src/iMoneza
tests/iMoneza/UnitTest
.gitignore
.travis.yml
LICENSE
README.md
composer.json
composer.lock
phpunit.xml

README.md

Wallit PHP SDK

Build Status Coverage Status

A PHP library to integrate Wallit into your application.

Using your https://wallit.io 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 Wallit.

$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
  • Wallit publisher account

Bugs, Feature Requests and Testing

The features of this project are handled internally by Wallit. 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