digital-canvas/recurly-client-laravel

A simple Laravel 4 service provider for including the Recurly PHP Client for PHP.

v1.1.1 2014-07-07 16:02 UTC

This package is auto-updated.

Last update: 2024-12-12 14:31:10 UTC


README

Integrates the Recurly API with Laravel 4

A simple Laravel 4 service provider for including the Recurly PHP Client.

Installation

The Recurly Service Provider can be installed via Composer by requiring the digital-canvas/recurly-client-laravel package in your project's composer.json.

{
    "require": {
        "digital-canvas/recurly-client-laravel": "1.*"
    }
}

Run composer update to pull in the libraries.

composer update

Configure

To use the Recurly Service Provider, you must register the provider when bootstrapping your Laravel application.

Add 'DigitalCanvas\Recurly\RecurlyServiceProvider' to the list of service providers in app/config/app.php

'DigitalCanvas\Recurly\RecurlyServiceProvider',

Create a config file for the package

php artisan config:publish digital-canvas/recurly-client-laravel

Edit the config and set the subdomain and apiKey values to match the Recurly credentials. If you plan to use recurly.js you must also set the privateKey value.

Usage

You may use the the api classes following the documentation at http://docs.recurly.com/client-libraries/php