Wallit PHP SDK
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.
This library is available on packagist and can be installed using composer.
$ composer require imoneza/imoneza-php-api
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());
- PHP 5.4+
- 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.
This library is licensed under the LGPLv3 License - see the LICENSE file for details