Skip to content

digital-canvas/recurly-client-laravel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

recurly-client-laravel

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