riskio/recurly-client-module

This package is not installable via Composer 1.x, please make sure you upgrade to Composer 2+. Read more about our Composer 1.x deprecation policy.

Recurly client integration into ZF2

v2.0.0 2017-10-23 09:01 UTC

This package is auto-updated.

Last update: 2021-11-06 03:33:13 UTC


README

Recurly client module provides a simple integration into Zend Framework of Recurly client library that interact with Recurly's subscription management through REST API.

Latest Stable Version Software License Build Status Total Downloads

Introduction

Recurly client module provides a config file to initialize simply REST API client.

Requirements

Installation

Recurly client module only officially supports installation through Composer. For Composer documentation, please refer to getcomposer.org.

You can install the module from command line:

$ composer require riskio/recurly-client-module

Enable the module by adding Riskio\Recurly\ClientModule key to your application.config.php file. Customize the module by copy-pasting the recurly-client.local.php.dist file to your config/autoload folder.

Configuration

Set your subdomain and API key. If you are using Recurly.js, specify also your private key.

<?php
return [
    'recurly' => [
        'subdomain'   => 'your-subdomain',
        'api_key'     => '012345678901234567890123456789ab',
        'private_key' => '0123456789abcdef0123456789abcdef',
    ],
];

Testing

$ vendor/bin/phpunit

Credits

License

The MIT License (MIT). Please see License File for more information.