Integrates the Recurly API with Laravel 4
A simple Laravel 4 service provider for including the Recurly PHP Client.
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
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.
You may use the the api classes following the documentation at http://docs.recurly.com/client-libraries/php